Author: akhaldi
Date: Sun Feb 2 23:56:45 2014
New Revision: 61937
URL:
http://svn.reactos.org/svn/reactos?rev=61937&view=rev
Log:
[KERNEL32]
* Free the buffer using RtlFreeHeap(). Spotted by Sergei Abramov.
CORE-7834 #resolve #comment Committed a proper fix in r61937. Cheers !
Modified:
trunk/reactos/dll/win32/kernel32/client/file/volume.c
Modified: trunk/reactos/dll/win32/kernel32/client/file/volume.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/file/volume.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/file/volume.c [iso-8859-1] Sun Feb 2 23:56:45
2014
@@ -668,7 +668,7 @@
if (!WideCharToMultiByte( CP_ACP, 0, buffer, -1, volume, len, NULL, NULL )) ret =
FALSE;
}
- HeapFree( GetProcessHeap(), 0, buffer );
+ RtlFreeHeap(RtlGetProcessHeap(), 0, buffer);
return ret;
}