Bug 584922, leak of unicodePw SECITEM in nsPKCS12Blob::ExportToFile and nsPKCS12Blob::ImportFromFileHelper, r=kaie, a=beltzner

This commit is contained in:
mattm@chromium.org 2011-02-17 14:53:44 +01:00
parent d3295be19b
commit a1b20bbcc4

View File

@ -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;
}