Author: pschweitzer
Date: Tue Sep 20 12:28:23 2011
New Revision: 53769
URL:
http://svn.reactos.org/svn/reactos?rev=53769&view=rev
Log:
[MKHIVE]
Fix memory leak
Modified:
trunk/reactos/tools/mkhive/registry.c
Modified: trunk/reactos/tools/mkhive/registry.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/mkhive/registry.c?re…
==============================================================================
--- trunk/reactos/tools/mkhive/registry.c [iso-8859-1] (original)
+++ trunk/reactos/tools/mkhive/registry.c [iso-8859-1] Tue Sep 20 12:28:23 2011
@@ -84,6 +84,7 @@
Key->KeyCell = (PCM_KEY_NODE)HvGetCell (&RegistryHive->Hive,
Key->KeyCellOffset);
if (!Key->KeyCell)
{
+ free(Key->Name);
free(Key);
return NULL;
}