Andre Guibert de Bruet fixed a memory leak when PKCS #12 parsing failed

This commit is contained in:
Daniel Stenberg
2007-05-22 20:46:51 +00:00
parent a9d49769ff
commit 96c093f27c
3 changed files with 3 additions and 1 deletions

View File

@@ -377,6 +377,7 @@ int cert_stuff(struct connectdata *conn,
failf(data,
"could not parse PKCS12 file, check password, OpenSSL error %s",
ERR_error_string(ERR_get_error(), NULL) );
PKCS12_free(p12);
return 0;
}