kernel32: Fix a memory leak (1 of 2)
Andrew Talbot
andrew.talbot at talbotville.com
Wed Sep 26 10:51:24 CDT 2007
Changelog:
kernel32: Fix a memory leak.
diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
index a08235a..83623f1 100644
--- a/dlls/kernel32/process.c
+++ b/dlls/kernel32/process.c
@@ -661,6 +661,7 @@ static void init_current_directory( CURD
RtlInitUnicodeString( &dir_str, dirW );
RtlSetCurrentDirectory_U( &dir_str );
RtlFreeUnicodeString( &dir_str );
+ HeapFree( GetProcessHeap(), 0, dirW );
}
}
More information about the wine-patches
mailing list