Sven Baars : kernel32: Free the right variable (Coverity).
Alexandre Julliard
julliard at winehq.org
Mon Aug 24 15:58:51 CDT 2020
Module: wine
Branch: master
Commit: 47fe53172971cfd233b30b33cf0d710c6317279c
URL: https://source.winehq.org/git/wine.git/?a=commit;h=47fe53172971cfd233b30b33cf0d710c6317279c
Author: Sven Baars <sbaars at codeweavers.com>
Date: Mon Aug 24 17:02:03 2020 +0200
kernel32: Free the right variable (Coverity).
Signed-off-by: Sven Baars <sbaars at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/kernel32/profile.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/kernel32/profile.c b/dlls/kernel32/profile.c
index a1b3979555..43b303fa25 100644
--- a/dlls/kernel32/profile.c
+++ b/dlls/kernel32/profile.c
@@ -1290,7 +1290,7 @@ static BOOL delete_section( const WCHAR *filename, const WCHAR *section )
{
if (!(path = get_key_value( subkey, entry )))
{
- HeapFree( GetProcessHeap(), 0, path );
+ HeapFree( GetProcessHeap(), 0, entry );
continue;
}
More information about the wine-cvs
mailing list