regedit: Remove redundant NULL check before heap_free().

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2019-01-29 20:38:06 +01:00 committed by Alexandre Julliard
parent a1c756510d
commit 73a997c6ba
1 changed files with 2 additions and 5 deletions

View File

@ -731,11 +731,8 @@ static WCHAR *quoted_value_name_state(struct parser *parser, WCHAR *pos)
{
WCHAR *val_name = pos, *p;
if (parser->value_name)
{
heap_free(parser->value_name);
parser->value_name = NULL;
}
heap_free(parser->value_name);
parser->value_name = NULL;
if (!REGPROC_unescape_string(val_name, &p))
goto invalid;