[gnome-keyring] egg-asn1x: Fix memory leak in egg_asn1x_set_any_raw()
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keyring] egg-asn1x: Fix memory leak in egg_asn1x_set_any_raw()
- Date: Tue, 14 Oct 2014 16:20:01 +0000 (UTC)
commit 1581f4a33e350de62cf98bec0530934dcf2a0272
Author: Christophe Fergeau <cfergeau redhat com>
Date: Wed Oct 1 22:42:23 2014 +0200
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
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 b18ddef..f0a81cb 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]