Signed-off-by: Michael Stefaniuc mstefani@winehq.org --- programs/reg/import.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/programs/reg/import.c b/programs/reg/import.c index 779ea2863b..3e3ad11638 100644 --- a/programs/reg/import.c +++ b/programs/reg/import.c @@ -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;