244881 Mem leak in SSLSocket getStatus

git-svn-id: svn://10.0.0.236/trunk@161704 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
glen.beasley%sun.com
2004-09-03 17:15:12 +00:00
parent e89d0c8db4
commit 5159850281

View File

@@ -566,9 +566,11 @@ finish:
PR_Free(cipher);
}
if( issuer != NULL ) {
PR_Free(issuer);
PORT_Free(issuer);
}
if ( subject != NULL) {
PORT_Free(subject);
}
/* subject is not allocated so it doesn't need to be freed */
if( peerCert != NULL ) {
CERT_DestroyCertificate(peerCert);
}