Commit a9987fa1 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

regedit: Remove a redundant NULL check before HeapFree().

parent ba0afd26
......@@ -1564,9 +1564,7 @@ BOOL import_registry_file(FILE *reg_file)
if (parser.reg_version == REG_VERSION_FUZZY || parser.reg_version == REG_VERSION_INVALID)
return parser.reg_version == REG_VERSION_FUZZY;
if (parser.value_name)
HeapFree(GetProcessHeap(), 0, parser.value_name);
HeapFree(GetProcessHeap(), 0, parser.value_name);
close_key(&parser);
return TRUE;
......
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