diff options
author | mmann <mmann@f5534014-38df-0310-8fa8-9805f1628bb7> | 2012-08-14 17:58:41 +0000 |
---|---|---|
committer | mmann <mmann@f5534014-38df-0310-8fa8-9805f1628bb7> | 2012-08-14 17:58:41 +0000 |
commit | fd64ac611fd33f5a438c96c9ff014abb7de1e312 (patch) | |
tree | 1ac87d0599ef4502e570979022e1f8db4ddacf95 /epan/dissectors/packet-rlc.c | |
parent | 548f33f28b1b74e515f1e9cb207bab47eebde103 (diff) |
more ephemeral memory cleanup
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@44496 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-rlc.c')
-rw-r--r-- | epan/dissectors/packet-rlc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-rlc.c b/epan/dissectors/packet-rlc.c index 2173f9c2e1..5c1cd9726f 100644 --- a/epan/dissectors/packet-rlc.c +++ b/epan/dissectors/packet-rlc.c @@ -2030,10 +2030,9 @@ rlc_decipher_tvb(tvbuff_t *tvb, packet_info *pinfo, guint32 counter, guint8 rbid /*Fix the key into a byte block*/ /*TODO: This should be done in a preferences callback function*/ - out = g_malloc0( strlen(global_rlc_kasumi_key)+1); + out = ep_alloc0( strlen(global_rlc_kasumi_key)+1); memcpy(out,global_rlc_kasumi_key,strlen(global_rlc_kasumi_key)); /*Copy from prefrence const pointer*/ key_in = translate_hex_key(out); /*Translation*/ - g_free(out); /*Location for decrypted data*/ out = g_malloc( tvb_length(tvb) ); |