Haidong Yu : ieframe: Fix memory leak in PersistFile_Save.
Alexandre Julliard
julliard at winehq.org
Tue Mar 23 15:07:45 CDT 2021
Module: wine
Branch: oldstable
Commit: c6553e54dbaee103c105785e0b54b317130b0efe
URL: https://source.winehq.org/git/wine.git/?a=commit;h=c6553e54dbaee103c105785e0b54b317130b0efe
Author: Haidong Yu <yhd986 at 163.com>
Date: Fri Dec 18 16:39:49 2020 +0800
ieframe: Fix memory leak in PersistFile_Save.
Signed-off-by: yuhaidong <yuhaidong at uniontech.com>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit e8741f08178070ff025e6e5280b552ad64af9249)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
dlls/ieframe/intshcut.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/ieframe/intshcut.c b/dlls/ieframe/intshcut.c
index 13a5582dbc7..6c64eb5b3b2 100644
--- a/dlls/ieframe/intshcut.c
+++ b/dlls/ieframe/intshcut.c
@@ -614,6 +614,7 @@ static HRESULT WINAPI PersistFile_Save(IPersistFile *pFile, LPCOLESTR pszFileNam
WriteFile(file, str_ICONFILE, lstrlenA(str_ICONFILE), &bytesWritten, NULL);
WriteFile(file, iconfile, lstrlenA(iconfile), &bytesWritten, NULL);
WriteFile(file, str_eol, lstrlenA(str_eol), &bytesWritten, NULL);
+ heap_free(iconfile);
}
sprintf(indexString, "ICONINDEX=%d", pvread[1].u.iVal);
More information about the wine-cvs
mailing list