Skip to content

Commit

Permalink
Bug 1317118 - Fix a memory leak in static SECStatus CertReq() r=franz…
Browse files Browse the repository at this point in the history
…iskus

--HG--
extra : amend_source : 5a9a31c3b7c465e74f1a46a831ca67694f18e43b
  • Loading branch information
sylvestre committed Nov 13, 2016
1 parent 75ad2ce commit 0bc2367
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/certutil/certutil.c
Expand Up @@ -204,6 +204,7 @@ CertReq(SECKEYPrivateKey *privk, SECKEYPublicKey *pubk, KeyType keyType,
/* Create info about public key */
spki = SECKEY_CreateSubjectPublicKeyInfo(pubk);
if (!spki) {
PORT_FreeArena(arena, PR_FALSE);
SECU_PrintError(progName, "unable to create subject public key");
return SECFailure;
}
Expand Down

0 comments on commit 0bc2367

Please sign in to comment.