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-iwarp-mpa.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-iwarp-mpa.c')
-rw-r--r-- | epan/dissectors/packet-iwarp-mpa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-iwarp-mpa.c b/epan/dissectors/packet-iwarp-mpa.c index 3d23ff339b..548f68d6e2 100644 --- a/epan/dissectors/packet-iwarp-mpa.c +++ b/epan/dissectors/packet-iwarp-mpa.c @@ -330,7 +330,7 @@ remove_markers(tvbuff_t *tvb, packet_info *pinfo, guint32 marker_offset, /* allocate memory for the marker-free buffer */ mfree_buff_length = orig_length - (MPA_MARKER_LEN * num_markers); - mfree_buff = ep_alloc(mfree_buff_length); + mfree_buff = malloc(mfree_buff_length); if (!mfree_buff) THROW(OutOfMemoryError); @@ -346,6 +346,7 @@ remove_markers(tvbuff_t *tvb, packet_info *pinfo, guint32 marker_offset, } mfree_tvb = tvb_new_child_real_data(tvb, mfree_buff, mfree_buff_length, mfree_buff_length); + tvb_set_free_cb(mfree_tvb, free); add_new_data_source(pinfo, mfree_tvb, "FPDU without Markers"); return mfree_tvb; |