reg: Free szValue after deleting all registry values (Coverity).

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hugh McMaster 2016-06-28 11:35:01 +00:00 committed by Alexandre Julliard
parent cedd95e2a8
commit 2885170057
1 changed files with 1 additions and 0 deletions

View File

@ -481,6 +481,7 @@ static int reg_delete(HKEY root, WCHAR *path, WCHAR *key_name, WCHAR *value_name
}
else break;
}
HeapFree(GetProcessHeap(), 0, szValue);
}
else if (value_name || value_empty)
{