aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tvbuff.c
diff options
context:
space:
mode:
authorobiot <obiot@f5534014-38df-0310-8fa8-9805f1628bb7>2004-05-07 18:15:24 +0000
committerobiot <obiot@f5534014-38df-0310-8fa8-9805f1628bb7>2004-05-07 18:15:24 +0000
commitd18e7299421a3ba1b1bed2c0255ed460d87ba21b (patch)
treeef8d1f28cb28c0b1c73486c7c00a0a0a176b9f26 /epan/tvbuff.c
parent5a9c5e4e9ea2f52d53ba2bd6d20c0d70c0d6ce77 (diff)
Memory management of tvb_uncompress() needs tvb_set_free_cb().
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10817 f5534014-38df-0310-8fa8-9805f1628bb7
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;