diff options
author | Jeff Foster <jfoste@woodward.com> | 2001-03-26 18:55:27 +0000 |
---|---|---|
committer | Jeff Foster <jfoste@woodward.com> | 2001-03-26 18:55:27 +0000 |
commit | 963080eb335b77305e75576e340dab07f0cd3beb (patch) | |
tree | 2735433e63a7644c30e4f82a29cafa2907dc7ccf /packet-wcp.c | |
parent | 486d964200f2828cea211524092b0c60c0e8f661 (diff) | |
download | wireshark-963080eb335b77305e75576e340dab07f0cd3beb.tar.gz |
Added the created tvbuff into the original tvbuff chain so clean-up is performed.
svn path=/trunk/; revision=3192
Diffstat (limited to 'packet-wcp.c')
-rw-r--r-- | packet-wcp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packet-wcp.c b/packet-wcp.c index ea2dd3506f..79b403c636 100644 --- a/packet-wcp.c +++ b/packet-wcp.c @@ -2,7 +2,7 @@ * Routines for Wellfleet Compression frame disassembly * Copyright 2001, Jeffrey C. Foster <jfoste@woodward.com> * - * $Id: packet-wcp.c,v 1.4 2001/03/23 21:58:37 guy Exp $ + * $Id: packet-wcp.c,v 1.5 2001/03/26 18:55:27 jfoster Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -617,6 +617,9 @@ static tvbuff_t *wcp_uncompress( tvbuff_t *src_tvb, int offset, packet_info *pin } ENDTRY; + /* link new tvbuff into tvbuff chain so cleanup is done later */ + tvb_set_child_real_data_tvbuff( src_tvb, tvb); + /* Add new data to the data source list */ pinfo->fd->data_src = g_slist_append( pinfo->fd->data_src, tvb); return tvb; |