From cd09f250020334a85c5463af4e1483ab4476cb31 Mon Sep 17 00:00:00 2001 From: "valeski%netscape.com" Date: Sun, 25 Jul 1999 13:37:16 +0000 Subject: [PATCH] mem leak - rev'd by dp --- xpcom/components/nsComponentManager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xpcom/components/nsComponentManager.cpp b/xpcom/components/nsComponentManager.cpp index 6258a4638bd..5bbb828127a 100644 --- a/xpcom/components/nsComponentManager.cpp +++ b/xpcom/components/nsComponentManager.cpp @@ -1790,6 +1790,8 @@ nsComponentManagerImpl::SyncComponentsInDir(RegistrationTime when, nsIFileSpec * // the file isn't a component like initpref.js // So dont break on these errors. } + + NS_RELEASE(dirEntry); rv = dirIterator->next(); if (NS_FAILED(rv)) return rv;