From 7d274106ec3d7e5f58090ee00d7af873174f7c27 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 27 Mar 2001 02:01:31 +0000 Subject: Added the created tvbuff into the original tvbuff chain so clean-up is performed. svn path=/trunk/; revision=3193 --- packet-icq.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'packet-icq.c') diff --git a/packet-icq.c b/packet-icq.c index 8fff21904d..5c53348b5d 100644 --- a/packet-icq.c +++ b/packet-icq.c @@ -1,7 +1,7 @@ /* packet-icq.c * Routines for ICQ packet disassembly * - * $Id: packet-icq.c,v 1.27 2001/03/25 01:52:16 guy Exp $ + * $Id: packet-icq.c,v 1.28 2001/03/27 02:01:31 guy Exp $ * * Ethereal - Network traffic analyzer * By Johan Feyaerts @@ -1795,13 +1795,18 @@ dissect_icqv5Client(tvbuff_t *tvb, decr_tvb = tvb_new_real_data(decr_pd, pktsize, tvb_reported_length(tvb), "Decrypted"); + /* Add the tvbuff to the list of tvbuffs to which the tvbuff we + were handed refers, so it'll get cleaned up when that tvbuff + is cleaned up. */ + tvb_set_child_real_data_tvbuff(tvb, decr_tvb); + /* Add the decrypted data to the data source list. */ pinfo->fd->data_src = g_slist_append(pinfo->fd->data_src, decr_tvb); cmd = tvb_get_letohs(decr_tvb, ICQ5_CL_CMD); if (check_col(pinfo->fd, COL_INFO)) - col_add_fstr(pinfo->fd, COL_INFO, "ICQv5 %s", findClientCmd(cmd)); + col_add_fstr(pinfo->fd, COL_INFO, "ICQv5 %s", findClientCmd(cmd)); if (tree) { ti = proto_tree_add_protocol_format(tree, -- cgit v1.2.3