129218 - memory leaks in tstclnt. r=neil

This commit is contained in:
alexei.volkov.bugs%sun.com 2007-03-05 21:01:25 +00:00
Родитель 0b1f37fbb4
Коммит 526d3e2011
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -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) {