diff --git a/security/nss/cmd/strsclnt/strsclnt.c b/security/nss/cmd/strsclnt/strsclnt.c index dde5e55c0fc..d1b45b496d4 100644 --- a/security/nss/cmd/strsclnt/strsclnt.c +++ b/security/nss/cmd/strsclnt/strsclnt.c @@ -1476,8 +1476,16 @@ main(int argc, char **argv) if (Cert_And_Key.key) { SECKEY_DestroyPrivateKey(Cert_And_Key.key); } + PR_DestroyLock(Cert_And_Key.lock); + if (Cert_And_Key.password) { + PL_strfree(Cert_And_Key.password); + } + if (Cert_And_Key.nickname) { + PL_strfree(Cert_And_Key.nickname); + } + /* some final stats. */ if (ssl3stats->hsh_sid_cache_hits + ssl3stats->hsh_sid_cache_misses + ssl3stats->hsh_sid_cache_not_ok == 0) {