зеркало из https://github.com/mozilla/gecko-dev.git
bug 987217 - free leaking encodedRequest in GenerateCRMFRequest r=cviecco
This commit is contained in:
Родитель
9be9b98310
Коммит
dc2c4359dc
|
@ -1838,7 +1838,7 @@ nsCreateReqFromKeyPairs(nsKeyPairInfo *keyids, int32_t numRequests,
|
|||
return retString;
|
||||
loser:
|
||||
nsFreeCertReqMessages(certReqMsgs,numRequests);
|
||||
return nullptr;;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
static nsISupports *
|
||||
|
@ -2024,6 +2024,7 @@ nsCrypto::GenerateCRMFRequest(JSContext* aContext,
|
|||
}
|
||||
CRMFObject* newObject = new CRMFObject();
|
||||
newObject->SetCRMFRequest(encodedRequest);
|
||||
PORT_Free(encodedRequest);
|
||||
nsFreeKeyPairInfo(keyids, numRequests);
|
||||
|
||||
// Post an event on the UI queue so that the JS gets called after
|
||||
|
|
Загрузка…
Ссылка в новой задаче