From c15b52ac554cb56afbddad5e3fdaf1518361d4eb Mon Sep 17 00:00:00 2001 From: "glen.beasley%sun.com" Date: Fri, 3 Sep 2004 17:15:12 +0000 Subject: [PATCH] 244881 Mem leak in SSLSocket getStatus --- security/jss/org/mozilla/jss/ssl/SSLSocket.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/security/jss/org/mozilla/jss/ssl/SSLSocket.c b/security/jss/org/mozilla/jss/ssl/SSLSocket.c index 479de8bc99b..080c84e6d05 100644 --- a/security/jss/org/mozilla/jss/ssl/SSLSocket.c +++ b/security/jss/org/mozilla/jss/ssl/SSLSocket.c @@ -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); }