commit | 8849f15ae2dbdc079ad1e6e71a8d6828cf7fa0a7 | [log] [tgz] |
---|---|---|
author | Rick Dean <rick@fdd.com> | Fri Jul 24 10:10:23 2009 -0500 |
committer | Rick Dean <rick@fdd.com> | Fri Jul 24 10:10:23 2009 -0500 |
tree | 7b61fa7ee0706a3798c83b4422adbb3c2c7ea05e | |
parent | ee568306449b9034dee5891d4a815a796975e9cf [diff] [blame] |
Stop leaking a STACK_OF(X509) in crypto_PKCS12_export. Jean-Paul's find.
diff --git a/src/crypto/pkcs12.c b/src/crypto/pkcs12.c index 3ab8a38..79b3d6e 100644 --- a/src/crypto/pkcs12.c +++ b/src/crypto/pkcs12.c
@@ -280,6 +280,7 @@ NID_pbe_WithSHA1And3_Key_TripleDES_CBC, NID_pbe_WithSHA1And3_Key_TripleDES_CBC, iter, maciter, 0); + sk_X509_free(cacerts); /* don't free the certs, just the stack */ if( p12 == NULL ) { exception_from_error_queue(crypto_Error); return NULL;