diff options
author | Bill Meier <wmeier@newsguy.com> | 2011-12-13 02:56:44 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2011-12-13 02:56:44 +0000 |
commit | 199da73e21525ff6fd8eb2b177e35b5396e6275c (patch) | |
tree | 76369dff2572eec863c88bcdc62aa02cdcc5d4ae /epan/dissectors/packet-spice.c | |
parent | c3da1f23d3793b4eb8ddf23f75a29d124c34b085 (diff) |
Prevent memory leakage of uncompress tvb and associated data buffer (step 1).
(tvb memory leak will actually remain until a bug in tvbuff.c is also fixed).
svn path=/trunk/; revision=40171
Diffstat (limited to 'epan/dissectors/packet-spice.c')
-rw-r--r-- | epan/dissectors/packet-spice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-spice.c b/epan/dissectors/packet-spice.c index f03683da0e..3193832157 100644 --- a/epan/dissectors/packet-spice.c +++ b/epan/dissectors/packet-spice.c @@ -1391,7 +1391,7 @@ dissect_ImageZLIB_GLZ_stream(tvbuff_t *tvb, proto_tree *ZLIB_GLZ_tree, packet_in tvbuff_t *uncompressed_tvb; ti = proto_tree_add_text(ZLIB_GLZ_tree, tvb, offset, ZLIB_GLZSize, "ZLIB stream (%u bytes)", ZLIB_GLZSize); - uncompressed_tvb = tvb_uncompress(tvb, offset, ZLIB_GLZSize); + uncompressed_tvb = tvb_child_uncompress(tvb, tvb, offset, ZLIB_GLZSize); if (uncompressed_tvb != NULL) { add_new_data_source(pinfo, uncompressed_tvb, "Uncompressed GLZ stream"); Uncomp_tree = proto_item_add_subtree(ti, ett_Uncomp_tree); |