diff options
author | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-01-11 16:14:26 +0000 |
---|---|---|
committer | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-01-11 16:14:26 +0000 |
commit | f915f51fe85c0e73a7493df7ab76925425b47da1 (patch) | |
tree | 987fbd224c57a79a89dd00ab3969dc74c2e10bb8 /epan/dissectors/packet-ldss.c | |
parent | 34897a210635081ff3cc672f9f32b17afaeb1797 (diff) |
Fix part of Bug 3917 "tvb_new_real_data is prone to memory leak"
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3917
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31499 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-ldss.c')
-rw-r--r-- | epan/dissectors/packet-ldss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ldss.c b/epan/dissectors/packet-ldss.c index bfaa7d3ebe..ea8a906f3c 100644 --- a/epan/dissectors/packet-ldss.c +++ b/epan/dissectors/packet-ldss.c @@ -701,7 +701,7 @@ dissect_ldss_transfer (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) /* Be nice and uncompress the file data. */ if (compression == COMPRESSION_GZIP) { tvbuff_t *uncomp_tvb = NULL; - uncomp_tvb = tvb_uncompress(tvb, 0, tvb_length(tvb)); + uncomp_tvb = tvb_child_uncompress(NULL, tvb, 0, tvb_length(tvb)); if (uncomp_tvb != NULL) { ti = proto_tree_add_bytes_format_value(ldss_tree, hf_ldss_file_data, uncomp_tvb, 0, tvb_length(uncomp_tvb), |