[Bug 337495] Double free in CRMF_CertReqMsgSetSignaturePOP (security/nss/lib/crmf/crmfpop.c). r=nelson

This commit is contained in:
alexei.volkov.bugs%sun.com 2006-05-22 21:46:14 +00:00
Родитель e4bbcf3081
Коммит 7cd142bd9c
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -315,10 +315,10 @@ CRMF_CertReqMsgSetSignaturePOP(CRMFCertReqMsg *inCertReqMsg,
goto loser; goto loser;
} }
rv = SECITEM_CopyItem(poolp, &(inCertReqMsg->derPOP), &derDest); rv = SECITEM_CopyItem(poolp, &(inCertReqMsg->derPOP), &derDest);
PORT_Free (derDest.data);
if (rv != SECSuccess) { if (rv != SECSuccess) {
goto loser; goto loser;
} }
PORT_Free (derDest.data);
PORT_ArenaUnmark(poolp,mark); PORT_ArenaUnmark(poolp,mark);
return SECSuccess; return SECSuccess;