Skip to content

Commit

Permalink
Bugzilla bug 133584: PK11_SaveSMimeProfile also needs to free free_sl…
Browse files Browse the repository at this point in the history
…ot if

it returns on error.
  • Loading branch information
wtc%netscape.com committed Apr 16, 2002
1 parent 6efed1b commit 7b24ce7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions security/nss/lib/pk11wrap/pk11cert.c
Expand Up @@ -3918,6 +3918,9 @@ PK11_SaveSMimeProfile(PK11SlotInfo *slot, char *emailAddr, SECItem *derSubj,
rwsession = PK11_GetRWSession(slot);
if (rwsession == CK_INVALID_SESSION) {
PORT_SetError(SEC_ERROR_READ_ONLY);
if (free_slot) {
PK11_FreeSlot(free_slot);
}
return SECFailure;
}

Expand Down

0 comments on commit 7b24ce7

Please sign in to comment.