mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
Fix 205066: double-free in PK11KeyGenerator.c:constructSHA1PBAKey()
This commit is contained in:
parent
78621b8c0e
commit
027947b867
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user