Skip to content

Commit

Permalink
Bug 1209435 - Leak of memory or pointers to system resources in NSC_S…
Browse files Browse the repository at this point in the history
…ignInit, r=ekr,mt

--HG--
extra : amend_source : 9c8d8227031494ce7eccff7851958be4851cc407
  • Loading branch information
ttaubert committed Sep 29, 2015
1 parent b82b523 commit f555a16
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/softoken/pkcs11c.c
Expand Up @@ -2577,6 +2577,7 @@ CK_RV NSC_SignInit(CK_SESSION_HANDLE hSession,
}
intpointer = PORT_New(CK_ULONG);
if (intpointer == NULL) {
PORT_Free(ctx);
crv = CKR_HOST_MEMORY;
break;
}
Expand Down Expand Up @@ -2606,6 +2607,7 @@ CK_RV NSC_SignInit(CK_SESSION_HANDLE hSession,
}
intpointer = PORT_New(CK_ULONG);
if (intpointer == NULL) {
PORT_Free(ctx);
crv = CKR_HOST_MEMORY;
break;
}
Expand Down

0 comments on commit f555a16

Please sign in to comment.