diff options
author | Olivier Biot <obiot.ethereal@gmail.com> | 2004-05-07 18:15:24 +0000 |
---|---|---|
committer | Olivier Biot <obiot.ethereal@gmail.com> | 2004-05-07 18:15:24 +0000 |
commit | 463597f54a9b64d3da741a873b6bd058425f4b8c (patch) | |
tree | ef8d1f28cb28c0b1c73486c7c00a0a0a176b9f26 /epan/tvbuff.c | |
parent | ea0912b2c631a98f8d42618192fa7ee9012e3e09 (diff) | |
download | wireshark-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.c | 3 |
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; |