Author: pschweitzer
Date: Sun Apr 6 13:25:28 2014
New Revision: 62653
URL:
http://svn.reactos.org/svn/reactos?rev=62653&view=rev
Log:
[ACCESS]
Don't leak memory
CID #716335
Modified:
trunk/reactos/dll/cpl/access/access.c
Modified: trunk/reactos/dll/cpl/access/access.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/access.c?re…
==============================================================================
--- trunk/reactos/dll/cpl/access/access.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/access/access.c [iso-8859-1] Sun Apr 6 13:25:28 2014
@@ -184,7 +184,10 @@
return 0;
if (!ReadSettings(pGlobalData))
+ {
+ HeapFree(GetProcessHeap(), 0, pGlobalData);
return 0;
+ }
ZeroMemory(&psh, sizeof(PROPSHEETHEADER));
psh.dwSize = sizeof(PROPSHEETHEADER);