diff options
author | Franziskus Kiefer <franziskuskiefer@gmail.com> | 2015-10-20 15:01:46 +0200 |
---|---|---|
committer | Franziskus Kiefer <franziskuskiefer@gmail.com> | 2015-10-20 15:01:46 +0200 |
commit | 84679402948f9861300f59f80ec40966bde004c2 (patch) | |
tree | 415e0e54eb15bc1164418331e4885a319bb38c3a | |
parent | e92712c36ec2057212509e34395c5d3b3e26d4b8 (diff) | |
download | nss-hg-84679402948f9861300f59f80ec40966bde004c2.tar.gz |
Bug 1208405 - [CID 222166] leaked_storage: Variable rv going out of scope leaks the storage it points to, r=ekr
-rw-r--r-- | lib/ckfw/hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ckfw/hash.c b/lib/ckfw/hash.c index e4f6ce2bd..7d21084bd 100644 --- a/lib/ckfw/hash.c +++ b/lib/ckfw/hash.c @@ -85,9 +85,9 @@ nssCKFWHash_Create rv->mutex = nssCKFWInstance_CreateMutex(fwInstance, arena, pError); if (!rv->mutex) { if( CKR_OK == *pError ) { - (void)nss_ZFreeIf(rv); *pError = CKR_GENERAL_ERROR; } + (void)nss_ZFreeIf(rv); return (nssCKFWHash *)NULL; } |