[gcr] 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: [gcr] egg-asn1x: Fix memory leak in egg_asn1x_set_any_raw()
- Date: Thu, 13 Nov 2014 21:05:17 +0000 (UTC)
commit cf983da759920ca9907b56419ddcf3b97e5bd7ed
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 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]