wineboot: Fix some memory leaks

Andrew Talbot andrew.talbot at talbotville.com
Sat Oct 20 11:03:18 CDT 2007


Changelog:
    wineboot: Fix some memory leaks.

diff --git a/programs/wineboot/wineboot.c b/programs/wineboot/wineboot.c
index 7172c89..97c8bf5 100644
--- a/programs/wineboot/wineboot.c
+++ b/programs/wineboot/wineboot.c
@@ -530,6 +530,9 @@ static BOOL ProcessRunKeys( HKEY hkRoot,
     res=ERROR_SUCCESS;
 
 end:
+    HeapFree( GetProcessHeap(), 0, szValue );
+    HeapFree( GetProcessHeap(), 0, szCmdLine );
+
     if( hkRun!=NULL )
         RegCloseKey( hkRun );
     if( hkWin!=NULL )



More information about the wine-patches mailing list