reg: 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
73a997c6ba
commit
cd8eb2445e
|
@ -645,11 +645,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 (!unescape_string(val_name, &p))
|
||||
goto invalid;
|
||||
|
|
Loading…
Reference in New Issue