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:
parent
a1c756510d
commit
73a997c6ba
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue