diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2014-10-01 22:42:23 +0200 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2014-10-14 17:55:45 +0200 |
commit | 1581f4a33e350de62cf98bec0530934dcf2a0272 (patch) | |
tree | 7ca9c226764e2d18b37c8e75fdef2d83d1ca347d /egg | |
parent | 17b429de6d2d911fcfac3fbc042aa5579a3a4535 (diff) | |
download | gnome-keyring-1581f4a33e350de62cf98bec0530934dcf2a0272.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 b18ddefe..f0a81cb7 100644 --- a/egg/egg-asn1x.c +++ b/egg/egg-asn1x.c @@ -3151,6 +3151,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); |