]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
avoid memory leak gnutls_3_1_0
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 15 Aug 2012 20:41:26 +0000 (22:41 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 15 Aug 2012 20:41:26 +0000 (22:41 +0200)
tests/mini-handshake-timeout.c

index dc868618f46cef96f9aacb76298b60a7e17dbfc6..30d899fb551fcde73709e648ea19d94bea43139a 100644 (file)
@@ -113,6 +113,7 @@ client (int fd, int wait)
   while (ret < 0 && gnutls_error_is_fatal(ret) == 0);
   
   gnutls_deinit(session);
+  gnutls_anon_free_client_credentials(anoncred);
   gnutls_global_deinit();
 
   if (ret < 0)
@@ -190,6 +191,7 @@ int ret;
   while (ret < 0 && gnutls_error_is_fatal(ret) == 0);
 
   gnutls_deinit (session);
+  gnutls_anon_free_server_credentials(anoncred);
   gnutls_global_deinit();
 
   if (ret < 0)