diff options
author | Bill Meier <wmeier@newsguy.com> | 2011-12-13 23:03:16 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2011-12-13 23:03:16 +0000 |
commit | ececcf68117f38cb1b235b2a1189159fbe01ff1f (patch) | |
tree | 196efef1018a8242785665e6e7de784a0c4a0ae4 /epan/dissectors/packet-isakmp.c | |
parent | 312f95f56caffc3321a9b6d4b89c107afb017e35 (diff) |
Fix a memory leak.
svn path=/trunk/; revision=40189
Diffstat (limited to 'epan/dissectors/packet-isakmp.c')
-rw-r--r-- | epan/dissectors/packet-isakmp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/dissectors/packet-isakmp.c b/epan/dissectors/packet-isakmp.c index 38781b4ac9..3b4eb74d49 100644 --- a/epan/dissectors/packet-isakmp.c +++ b/epan/dissectors/packet-isakmp.c @@ -1805,6 +1805,7 @@ decrypt_payload(tvbuff_t *tvb, packet_info *pinfo, const guint8 *buf, guint buf_ gcry_cipher_close(decr_ctx); encr_tvb = tvb_new_child_real_data(tvb, decrypted_data, buf_len, buf_len); + tvb_set_free_cb(encr_tvb, g_free); /* Add the decrypted data to the data source list. */ add_new_data_source(pinfo, encr_tvb, "Decrypted IKE"); |