mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 13:21:28 +00:00
Bug 584922, leak of unicodePw SECITEM in nsPKCS12Blob::ExportToFile and nsPKCS12Blob::ImportFromFileHelper, r=kaie, a=beltzner
This commit is contained in:
parent
d3295be19b
commit
a1b20bbcc4
@ -272,6 +272,7 @@ finish:
|
||||
// finish the decoder
|
||||
if (dcx)
|
||||
SEC_PKCS12DecoderFinish(dcx);
|
||||
SECITEM_ZfreeItem(&unicodePw, PR_FALSE);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
@ -487,6 +488,7 @@ finish:
|
||||
PR_Close(this->mTmpFile);
|
||||
this->mTmpFile = NULL;
|
||||
}
|
||||
SECITEM_ZfreeItem(&unicodePw, PR_FALSE);
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user