summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorian.mcgreer%sun.com <devnull@localhost>2002-02-05 22:08:12 +0000
committerian.mcgreer%sun.com <devnull@localhost>2002-02-05 22:08:12 +0000
commit6907e5fcec0ba2043195f17ff0cf4455b914e22d (patch)
treeb4e77e9b4cb9636e895fd7824841cd82d19b415e
parent47353d412abbda51934f61d895502306026d6e0c (diff)
downloadnss-hg-6907e5fcec0ba2043195f17ff0cf4455b914e22d.tar.gz
some of the output in bug 123081 shows potential leaks around iterators, since the iterator is explicitly freed allocate it in its own block to avoid this
-rw-r--r--security/nss/lib/base/list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/nss/lib/base/list.c b/security/nss/lib/base/list.c
index e3903c989..89aadf283 100644
--- a/security/nss/lib/base/list.c
+++ b/security/nss/lib/base/list.c
@@ -353,7 +353,7 @@ NSS_IMPLEMENT nssListIterator *
nssList_CreateIterator(nssList *list)
{
nssListIterator *rvIterator;
- rvIterator = nss_ZNEW(list->arena, nssListIterator);
+ rvIterator = nss_ZNEW(NULL, nssListIterator);
if (!rvIterator) {
return NULL;
}