aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-vj.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2009-10-06 19:15:58 +0000
committerAnders Broman <anders.broman@ericsson.com>2009-10-06 19:15:58 +0000
commitbc9a809b65612063457f882a2d732707879ecb01 (patch)
tree012cd52cad567bcc246d8749709f1b72ebe86356 /epan/dissectors/packet-vj.c
parent0f4d4344dd770cf06b0c4aaa9f945acc99f314d5 (diff)
From Didier Gautheron:
ep memory can't be used for tvbs defined as data_source. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4054 svn path=/trunk/; revision=30376
Diffstat (limited to 'epan/dissectors/packet-vj.c')
-rw-r--r--epan/dissectors/packet-vj.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/dissectors/packet-vj.c b/epan/dissectors/packet-vj.c
index 9583741c33..1ed19c2e4d 100644
--- a/epan/dissectors/packet-vj.c
+++ b/epan/dissectors/packet-vj.c
@@ -380,6 +380,7 @@ dissect_vjuc(tvbuff_t *tvb, packet_info *pinfo, proto_tree * tree)
if (ipsize < isize)
isize = ipsize;
next_tvb = tvb_new_child_real_data(tvb, buffer, isize, ipsize);
+ tvb_set_free_cb(next_tvb, g_free);
add_new_data_source(pinfo, next_tvb, "VJ Uncompressed");
/*
@@ -503,6 +504,7 @@ vjc_tvb_setup(tvbuff_t *src_tvb,
tvb_memcpy(src_tvb, pbuf + hdr_len, offset, buf_len - hdr_len);
memcpy(&tot_len, data_ptr + 2, 2);
*dst_tvb = tvb_new_child_real_data(src_tvb, pbuf, buf_len, g_ntohs(tot_len));
+ tvb_set_free_cb(*dst_tvb, g_free);
add_new_data_source(pinfo, *dst_tvb, "VJ Decompressed");
return VJ_OK;
}