зеркало из https://github.com/mozilla/pjs.git
[Bug 334236] double free in PK11_ListPrivKeysInSlot if keys allocation fails. r=nelson
This commit is contained in:
Родитель
4970a39dbd
Коммит
56865501c8
|
@ -2013,6 +2013,7 @@ PK11_ListPrivKeysInSlot(PK11SlotInfo *slot, char *nickname, void *wincx)
|
|||
keys = SECKEY_NewPrivateKeyList();
|
||||
if (keys == NULL) {
|
||||
PORT_Free(key_ids);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
for (i=0; i < objCount ; i++) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче