diff options
author | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2011-12-28 16:36:57 +0000 |
---|---|---|
committer | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2011-12-28 16:36:57 +0000 |
commit | 5debb5c5e378af42b457879252609ca7d3a5355d (patch) | |
tree | b3e403d45c6f33b0f6ac2186c9381a5668426769 /plugins/unistim | |
parent | 825850aa893c868f31399fe14962bb8fe36620c5 (diff) | |
download | wireshark-5debb5c5e378af42b457879252609ca7d3a5355d.tar.gz |
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.c | 2 |
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); } |