Author: akhaldi
Date: Sun Oct 2 19:18:03 2011
New Revision: 53935
URL:
http://svn.reactos.org/svn/reactos?rev=53935&view=rev
Log:
[SHELL32]
* Fix a memory leak.
Modified:
trunk/reactos/dll/win32/shell32/folder_options.cpp
Modified: trunk/reactos/dll/win32/shell32/folder_options.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/folder_o…
==============================================================================
--- trunk/reactos/dll/win32/shell32/folder_options.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/folder_options.cpp [iso-8859-1] Sun Oct 2 19:18:03
2011
@@ -237,7 +237,10 @@
/* open key */
if (RegOpenKeyExW(HKEY_CLASSES_ROOT, szName, 0, KEY_READ, &hKey) !=
ERROR_SUCCESS)
+ {
+ HeapFree(GetProcessHeap(), 0, Entry);
return;
+ }
/* FIXME check for duplicates */