diff options
author | rrelyea%redhat.com <devnull@localhost> | 2007-05-09 19:05:06 +0000 |
---|---|---|
committer | rrelyea%redhat.com <devnull@localhost> | 2007-05-09 19:05:06 +0000 |
commit | 1f74192fb71a41904690f60003c14bb53da7446f (patch) | |
tree | b9973b17a43650d3c540599dfc22a29e2b402c00 | |
parent | fa161cd28f6dc6cefe47249472aefd44f2388bfd (diff) | |
download | nss-hg-1f74192fb71a41904690f60003c14bb53da7446f.tar.gz |
Bug 341121 ? Coverity 408 sec_PKCS7CreateEncryptObject leaks param & result (edit)
-rw-r--r-- | security/nss/lib/pkcs7/p7local.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/security/nss/lib/pkcs7/p7local.c b/security/nss/lib/pkcs7/p7local.c index b7f79b696..64ec7d950 100644 --- a/security/nss/lib/pkcs7/p7local.c +++ b/security/nss/lib/pkcs7/p7local.c @@ -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; } } |