gnutls-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU gnutls branch, master, updated. gnutls_3_0_13-33-gce7caad


From: Nikos Mavrogiannopoulos
Subject: [SCM] GNU gnutls branch, master, updated. gnutls_3_0_13-33-gce7caad
Date: Thu, 23 Feb 2012 07:39:41 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU gnutls".

http://git.savannah.gnu.org/cgit/gnutls.git/commit/?id=ce7caadb8ea5df7e53dc6143f46bc02ae0aec885

The branch, master has been updated
       via  ce7caadb8ea5df7e53dc6143f46bc02ae0aec885 (commit)
      from  624c7af212b211d856b05223fa20a66388c92890 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit ce7caadb8ea5df7e53dc6143f46bc02ae0aec885
Author: Nikos Mavrogiannopoulos <address@hidden>
Date:   Thu Feb 23 08:39:37 2012 +0100

    free allocated module name. Reported by Sam Varshavchik.

-----------------------------------------------------------------------

Summary of changes:
 NEWS         |    3 +++
 lib/pkcs11.c |    3 ++-
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/NEWS b/NEWS
index 89c11cd..e14d96e 100644
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,9 @@ certificate list. Reported by Remi Gacogne.
 
 ** libgnutls: cryptodev code corrected.
 
+** libgnutls: Eliminated memory leak in PCKS #11 initialization.
+Report and fix by Sam Varshavchik.
+
 ** API and ABI modifications:
 No changes since last version.
 
diff --git a/lib/pkcs11.c b/lib/pkcs11.c
index f3d2fb2..40bcb66 100644
--- a/lib/pkcs11.c
+++ b/lib/pkcs11.c
@@ -487,7 +487,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;
 
@@ -512,6 +512,7 @@ initialize_automatic_p11_kit (void)
           gnutls_assert ();
           _gnutls_debug_log ("Cannot add registered module: %s\n", name);
         }
+      free(name);
     }
 
   free (modules);


hooks/post-receive
-- 
GNU gnutls



reply via email to

[Prev in Thread] Current Thread [Next in Thread]