diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2014-10-01 22:42:23 +0200 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2014-11-13 22:02:32 +0100 |
commit | cf983da759920ca9907b56419ddcf3b97e5bd7ed (patch) | |
tree | 18ce7b24817e9e0bf20e27c3840db72a1de8958e /egg | |
parent | 427eb52bfb6efb3c491be14c4d2e7d9ea019608b (diff) | |
download | gcr-cf983da759920ca9907b56419ddcf3b97e5bd7ed.tar.gz |
egg-asn1x: Fix memory leak in egg_asn1x_set_any_raw()
In error cases, the Atlv variable 'tlv' which was created in this
function is not going to be used, so we must free it before returning.
https://bugzilla.gnome.org/show_bug.cgi?id=738508
Diffstat (limited to 'egg')
-rw-r--r-- | egg/egg-asn1x.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/egg/egg-asn1x.c b/egg/egg-asn1x.c index c4f3fd0..4fdb3c5 100644 --- a/egg/egg-asn1x.c +++ b/egg/egg-asn1x.c @@ -3189,6 +3189,7 @@ egg_asn1x_set_any_raw (GNode *node, /* A failure, set the message manually so it doesn't get a prefix */ } else { + atlv_free (tlv); an = node->data; g_free (an->failure); an->failure = g_strdup (msg); |