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 /epan/dissectors/packet-gopher.c | |
parent | 825850aa893c868f31399fe14962bb8fe36620c5 (diff) |
Fix memory leaks involving tvb_get_string[z]().
svn path=/trunk/; revision=40312
Diffstat (limited to 'epan/dissectors/packet-gopher.c')
-rw-r--r-- | epan/dissectors/packet-gopher.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/dissectors/packet-gopher.c b/epan/dissectors/packet-gopher.c index c9719e6fdd..24e2a0fc9a 100644 --- a/epan/dissectors/packet-gopher.c +++ b/epan/dissectors/packet-gopher.c @@ -179,6 +179,7 @@ dissect_gopher(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { name = tvb_get_string(tvb, offset + 1, sel_start - offset - 2); ti = proto_tree_add_string(gopher_tree, hf_gopher_dir_item, tvb, offset, line_len + 1, name); + g_free(name); dir_tree = proto_item_add_subtree(ti, ett_dir_item); proto_tree_add_item(dir_tree, hf_gopher_di_type, tvb, offset, 1, ENC_BIG_ENDIAN); proto_tree_add_item(dir_tree, hf_gopher_di_name, tvb, offset + 1, |