summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2013-02-03 13:13:34 -0500
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2013-02-03 13:21:03 -0500
commit433bc2bdc118ac3b8a83a5fb7d41b3cecdd73cc9 (patch)
tree1ffbf0ae89bb79bf41cf37cd4605d7ea6b71531d
parent24c6ce144a1e071210dc33cc794690429d74456c (diff)
downloadgnutls-433bc2bdc118ac3b8a83a5fb7d41b3cecdd73cc9.tar.gz
free allocated module name. Reported by Sam Varshavchik.
This is the same fix from the 3.0 branch as: ce7caadb "free allocated module name. Reported by Sam Varshavchik."
-rw-r--r--NEWS8
-rw-r--r--lib/pkcs11.c3
2 files changed, 10 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 2ef5910f7f..b5d493051b 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,14 @@ Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
See the end for copying conditions.
+Version 2.12.23 (unreleased)
+
+** libgnutls: Eliminated memory leak in PCKS #11 initialization.
+Report and fix by Sam Varshavchik.
+
+** API and ABI modifications:
+No changes since last version.
+
Version 2.12.22 (released 2013-01-05)
** libgnutls: Stricter RSA PKCS #1 1.5 encoding and decoding. Reported
diff --git a/lib/pkcs11.c b/lib/pkcs11.c
index 59cf686320..2bf6b040dc 100644
--- a/lib/pkcs11.c
+++ b/lib/pkcs11.c
@@ -441,7 +441,7 @@ static int
initialize_automatic_p11_kit (void)
{
struct ck_function_list **modules;
- const char *name;
+ char *name;
ck_rv_t rv;
int i, ret;
@@ -466,6 +466,7 @@ initialize_automatic_p11_kit (void)
gnutls_assert ();
_gnutls_debug_log ("Cannot add registered module: %s\n", name);
}
+ free(name);
}
free (modules);