diff options
author | wtc%google.com <devnull@localhost> | 2008-05-18 01:51:45 +0000 |
---|---|---|
committer | wtc%google.com <devnull@localhost> | 2008-05-18 01:51:45 +0000 |
commit | c6eb243898b564697abc1580518c8254f3a258fb (patch) | |
tree | 1c9f815fb03ad919bed56945251c043e20348999 | |
parent | 77669d06dddb3fb7abd9c5fbe024cc4bfec99681 (diff) | |
download | nss-hg-c6eb243898b564697abc1580518c8254f3a258fb.tar.gz |
Bug 431929: Fixed a memory leak on an error path in
get_token_objects_for_cache . r=nelson.
-rw-r--r-- | security/nss/lib/dev/devutil.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/security/nss/lib/dev/devutil.c b/security/nss/lib/dev/devutil.c index 7c9577b5a..b64febab6 100644 --- a/security/nss/lib/dev/devutil.c +++ b/security/nss/lib/dev/devutil.c @@ -630,6 +630,8 @@ get_token_objects_for_cache ( nssToken_AddRef(cache->objects[objectType][j]->object->token); nssArena_Destroy(cache->objects[objectType][j]->arena); } + nss_ZFreeIf(cache->objects[objectType]); + cache->objects[objectType] = NULL; nssCryptokiObjectArray_Destroy(objects); } cache->searchedObjectType[objectType] = PR_TRUE; |