Michael Stefaniuc : kernel32: Add missing HeapFree(). Found by Smatch.
Alexandre Julliard
julliard at winehq.org
Mon Jan 7 16:25:07 CST 2008
Module: wine
Branch: master
Commit: 46f8b23eb7c7bf72f0d8468046857b1007b0cd49
URL: http://source.winehq.org/git/wine.git/?a=commit;h=46f8b23eb7c7bf72f0d8468046857b1007b0cd49
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Mon Jan 7 22:12:54 2008 +0100
kernel32: Add missing HeapFree(). Found by Smatch.
---
dlls/kernel32/volume.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/kernel32/volume.c b/dlls/kernel32/volume.c
index 9edcf64..4948ef4 100644
--- a/dlls/kernel32/volume.c
+++ b/dlls/kernel32/volume.c
@@ -1475,6 +1475,7 @@ BOOL WINAPI FindNextVolumeA( HANDLE handle, LPSTR volume, DWORD len )
{
if (!WideCharToMultiByte( CP_ACP, 0, buffer, -1, volume, len, NULL, NULL )) ret = FALSE;
}
+ HeapFree( GetProcessHeap(), 0, buffer );
return ret;
}
More information about the wine-cvs
mailing list