From fdfbff367b64e3a7fc2bb98ca70764624940d804 Mon Sep 17 00:00:00 2001 From: "rrelyea%redhat.com" Date: Wed, 9 May 2007 19:02:18 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20341121=20=C3=A2=C2=80=C2=93=20Coverity=20?= =?UTF-8?q?408=20sec=5FPKCS7CreateEncryptObject=20leaks=20param=20&=20resu?= =?UTF-8?q?lt=20(edit)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://10.0.0.236/trunk@226201 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/security/nss/lib/pkcs7/p7local.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mozilla/security/nss/lib/pkcs7/p7local.c b/mozilla/security/nss/lib/pkcs7/p7local.c index 9063863950f..031b6b95485 100644 --- a/mozilla/security/nss/lib/pkcs7/p7local.c +++ b/mozilla/security/nss/lib/pkcs7/p7local.c @@ -40,7 +40,7 @@ * encoding/creation side *and* the decoding/decryption side. Anything * else should be static routines in the appropriate file. * - * $Id: p7local.c,v 1.8 2005-10-03 22:01:56 relyea%netscape.com Exp $ + * $Id: p7local.c,v 1.9 2007-05-09 19:02:18 rrelyea%redhat.com Exp $ */ #include "p7local.h" @@ -278,6 +278,8 @@ sec_PKCS7CreateEncryptObject (PRArenaPool *poolp, PK11SymKey *key, if (needToEncodeAlgid) { rv = PK11_ParamToAlgid(algtag,param,poolp,algid); if(rv != SECSuccess) { + PORT_Free (result); + SECITEM_FreeItem(param,PR_TRUE); return NULL; } }