diff options
author | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-10-06 19:15:58 +0000 |
---|---|---|
committer | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-10-06 19:15:58 +0000 |
commit | 70bb8ca3deecaf59516a94086e0386b6d871ac50 (patch) | |
tree | 012cd52cad567bcc246d8749709f1b72ebe86356 /epan/dissectors/packet-vj.c | |
parent | e15650ef4d13bcfa392443cee7bea1e4e26a96fc (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
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30376 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-vj.c')
-rw-r--r-- | epan/dissectors/packet-vj.c | 2 |
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; } |