summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2015-01-09 17:25:45 -0500
committerTingPing <tingping@tingping.se>2015-01-09 17:25:45 -0500
commit13db2011e3b83e7a73b8465c8487edb9a2913c58 (patch)
tree72cce1ee2a022492fa2f5cf45e209f8c0bc3f121 /src
parent7739c99f3f618df76b5b308012d19d720b2b13df (diff)
Fix leak
From libressl-portable/openbsd@20de8a4923bbeb
Diffstat (limited to 'src')
-rw-r--r--src/common/ssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/ssl.c b/src/common/ssl.c
index 78c3c510..0a1db9f6 100644
--- a/src/common/ssl.c
+++ b/src/common/ssl.c
@@ -483,7 +483,7 @@ _SSL_check_subject_altname (X509 *cert, const char *host)
 
 	if (addr != NULL)
 		g_object_unref (addr);
-	sk_GENERAL_NAME_free (altname_stack);
+	sk_GENERAL_NAME_pop_free (altname_stack, GENERAL_NAME_free);
 	return rv;
 }