Fix memory leak.
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 13 Dec 2011 23:16:13 +0000 (23:16 +0000)
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 13 Dec 2011 23:16:13 +0000 (23:16 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40190 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-ieee802154.c

index 4baaac4befe332fdd23b3c19506c147ea8a4053d..d4e1f795dfcfd5597848ef4a9db8e91ba0dbb67b 100644 (file)
@@ -1901,6 +1901,7 @@ dissect_ieee802154_decrypt(tvbuff_t * tvb, guint offset, packet_info * pinfo, ie
 
         /* Create a tvbuff for the plaintext. */
         ptext_tvb = tvb_new_child_real_data(tvb, text, captured_len, reported_len);
+        tvb_set_free_cb(ptext_tvb, g_free);
         add_new_data_source(pinfo, ptext_tvb, "Decrypted IEEE 802.15.4 payload");
         *status = DECRYPT_PACKET_SUCCEEDED;
     }