Fix 205066: double-free in PK11KeyGenerator.c:constructSHA1PBAKey()

This commit is contained in:
nicolson%netscape.com 2003-05-14 00:04:02 +00:00
parent 78621b8c0e
commit 027947b867

View File

@ -256,9 +256,7 @@ finish:
if( pbeCtxt ) {
PBE_DestroyContext(pbeCtxt);
}
if(keyBits) {
SECITEM_ZfreeItem(keyBits, PR_TRUE /*freeit*/);
}
/* keyBits == pbeCtxt, so we don't need to free it */
return key;
}