aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/unistim
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2011-12-28 16:36:57 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2011-12-28 16:36:57 +0000
commit5debb5c5e378af42b457879252609ca7d3a5355d (patch)
treeb3e403d45c6f33b0f6ac2186c9381a5668426769 /plugins/unistim
parent825850aa893c868f31399fe14962bb8fe36620c5 (diff)
Fix memory leaks involving tvb_get_string[z]().
svn path=/trunk/; revision=40312
Diffstat (limited to 'plugins/unistim')
-rw-r--r--plugins/unistim/packet-unistim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/unistim/packet-unistim.c b/plugins/unistim/packet-unistim.c
index 9840d137ce..49d2acf689 100644
--- a/plugins/unistim/packet-unistim.c
+++ b/plugins/unistim/packet-unistim.c
@@ -1052,7 +1052,7 @@ dissect_display_switch(proto_tree *msg_tree,
}
if(msg_len>0){
/* I'm guessing this will work flakily at best */
- uinfo->string_data = tvb_get_string(tvb,offset,msg_len);
+ uinfo->string_data = tvb_get_ephemeral_string(tvb,offset,msg_len);
set_ascii_item(msg_tree,tvb,offset,msg_len);
}