summaryrefslogtreecommitdiff
path: root/egg
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2014-10-01 22:42:23 +0200
committerStef Walter <stefw@gnome.org>2014-10-14 17:55:45 +0200
commit1581f4a33e350de62cf98bec0530934dcf2a0272 (patch)
tree7ca9c226764e2d18b37c8e75fdef2d83d1ca347d /egg
parent17b429de6d2d911fcfac3fbc042aa5579a3a4535 (diff)
downloadgnome-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.c1
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);