From 4563164ac0dcdb7d5b9df8bff8c42d59ab225b18 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Wed, 17 May 2017 11:44:48 +0200 Subject: [PATCH] Bug 1365193, crmftest: fix memleaks spotted by coverity, r=kaie --- cmd/crmftest/testcrmf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/crmftest/testcrmf.c b/cmd/crmftest/testcrmf.c index fefa6894db..cbc680b08f 100644 --- a/cmd/crmftest/testcrmf.c +++ b/cmd/crmftest/testcrmf.c @@ -1261,11 +1261,13 @@ DoChallengeResponse(SECKEYPrivateKey *privKey, return 908; } keyID = PK11_MakeIDFromPubKey(publicValue); + SECITEM_FreeItem(publicValue, PR_TRUE); if (keyID == NULL) { printf("Could not make the keyID from the public value\n"); return 909; } foundPrivKey = PK11_FindKeyByKeyID(privKey->pkcs11Slot, keyID, &pwdata); + SECITEM_FreeItem(keyID, PR_TRUE); if (foundPrivKey == NULL) { printf("Could not find the private key corresponding to the public" " value.\n");