Skip to content

Commit

Permalink
Fixed a memory leak on memory allocation error. r=mcgreer. (bug 129709)
Browse files Browse the repository at this point in the history
  • Loading branch information
wtc%netscape.com committed Mar 15, 2002
1 parent 0160f8b commit 3a6d22c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions security/nss/lib/base/list.c
Expand Up @@ -127,6 +127,9 @@ nssList_Create
}
list = nss_ZNEW(arena, nssList);
if (!list) {
if (!arenaOpt) {
NSSArena_Destroy(arena);
}
return (nssList *)NULL;
}
if (threadSafe) {
Expand Down

0 comments on commit 3a6d22c

Please sign in to comment.