kernel32: Free the right variable (Coverity).

Signed-off-by: Sven Baars <sbaars@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sven Baars 2020-08-24 17:02:03 +02:00 committed by Alexandre Julliard
parent 8ea62f2ed1
commit 47fe531729
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}