summaryrefslogtreecommitdiff
path: root/epan/tvbuff.c
diff options
context:
space:
mode:
authorOlivier Biot <obiot.ethereal@gmail.com>2004-05-07 18:15:24 +0000
committerOlivier Biot <obiot.ethereal@gmail.com>2004-05-07 18:15:24 +0000
commit463597f54a9b64d3da741a873b6bd058425f4b8c (patch)
treeef8d1f28cb28c0b1c73486c7c00a0a0a176b9f26 /epan/tvbuff.c
parentea0912b2c631a98f8d42618192fa7ee9012e3e09 (diff)
downloadwireshark-463597f54a9b64d3da741a873b6bd058425f4b8c.tar.gz
Memory management of tvb_uncompress() needs tvb_set_free_cb().
svn path=/trunk/; revision=10817
Diffstat (limited to 'epan/tvbuff.c')
-rw-r--r--epan/tvbuff.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/tvbuff.c b/epan/tvbuff.c
index c47c11ba29..babc323d24 100644
--- a/epan/tvbuff.c
+++ b/epan/tvbuff.c
@@ -9,7 +9,7 @@
* the data of a backing tvbuff, or can be a composite of
* other tvbuffs.
*
- * $Id: tvbuff.c,v 1.63 2004/05/06 17:40:52 obiot Exp $
+ * $Id: tvbuff.c,v 1.64 2004/05/07 18:15:24 obiot Exp $
*
* Copyright (c) 2000 by Gilbert Ramirez <gram@alumni.rice.edu>
*
@@ -2380,6 +2380,7 @@ tvb_uncompress(tvbuff_t *tvb, int offset, int comprlen)
if (uncompr != NULL) {
uncompr_tvb = tvb_new_real_data((guint8*) uncompr, bytes_out,
bytes_out);
+ tvb_set_free_cb(uncompr_tvb, g_free);
}
g_free(compr);
return uncompr_tvb;