From 34547c75a39e22506904cb984f66d05e4145b9d8 Mon Sep 17 00:00:00 2001 From: "bruce%cybersight.com" Date: Thu, 27 May 1999 05:12:12 +0000 Subject: [PATCH] Fix a small memory leak. --- xpfe/appshell/src/nsAppShellService.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xpfe/appshell/src/nsAppShellService.cpp b/xpfe/appshell/src/nsAppShellService.cpp index 1c9f0c59b546..249eb1895ef4 100644 --- a/xpfe/appshell/src/nsAppShellService.cpp +++ b/xpfe/appshell/src/nsAppShellService.cpp @@ -37,6 +37,7 @@ #include "nsIRegistry.h" #include "nsIEnumerator.h" #include "nsICmdLineService.h" +#include "nsCRT.h" #ifdef NS_DEBUG #include "prprf.h" #endif @@ -293,6 +294,7 @@ nsAppShellService::EnumerateComponents( void (nsAppShellService::*function)( con // Unable to get subkey name, ignore it. } // Release the node. + nsCRT::free(name); NS_RELEASE( node ); } else { // Unable to convert item to registry node, ignore it.