[NSS] Avoid leak in pkcs12 decoder.

This commit is contained in:
Moonchild 2025-08-20 16:20:53 +02:00 committed by roytam1
commit fe21538da4

View file

@ -829,6 +829,7 @@ sec_pkcs12_decoder_asafes_notify(void *arg, PRBool before, void *dest,
safeContentsCtx->safeContentsA1Dcx = NULL;
}
cinfo = SEC_PKCS7DecoderFinish(p12dcx->currentASafeP7Dcx);
SEC_ASN1DecoderClearFilterProc(p12dcx->aSafeA1Dcx);
p12dcx->currentASafeP7Dcx = NULL;
if (!cinfo) {
p12dcx->errorValue = PORT_GetError();