Commit 73a997c6 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

regedit: Remove redundant NULL check before heap_free().

parent a1c75651
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment