Andrew Talbot : wineboot: Fix some memory leaks.
Alexandre Julliard
julliard at winehq.org
Mon Oct 22 09:55:27 CDT 2007
Module: wine
Branch: master
Commit: add663fdd2426cd2c18a89fd9fb0bc3f9bdedb19
URL: http://source.winehq.org/git/wine.git/?a=commit;h=add663fdd2426cd2c18a89fd9fb0bc3f9bdedb19
Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date: Sat Oct 20 17:03:18 2007 +0100
wineboot: Fix some memory leaks.
---
programs/wineboot/wineboot.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
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, LPCWSTR szKeyName, BOOL bDelete,
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-cvs
mailing list