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:
parent
8ea62f2ed1
commit
47fe531729
|
@ -1290,7 +1290,7 @@ static BOOL delete_section( const WCHAR *filename, const WCHAR *section )
|
||||||
{
|
{
|
||||||
if (!(path = get_key_value( subkey, entry )))
|
if (!(path = get_key_value( subkey, entry )))
|
||||||
{
|
{
|
||||||
HeapFree( GetProcessHeap(), 0, path );
|
HeapFree( GetProcessHeap(), 0, entry );
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue