kernel32: Add missing HeapFree(). Found by Smatch.

Michael Stefaniuc mstefani at redhat.de
Mon Jan 7 15:12:54 CST 2008


---
 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;
 }
 
-- 
1.5.4.rc2.38.gd6da3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080107/1381c8d4/attachment.pgp 


More information about the wine-patches mailing list