Hugh McMaster hugh.mcmaster@outlook.com writes:
@@ -1593,11 +1593,11 @@ void delete_registry_key(WCHAR *reg_key_name)
if (!(key_class = parse_key_name(reg_key_name, &key_name))) { output_message(STRING_INCORRECT_REG_CLASS, reg_key_name);
exit(1);
} if (!*key_name) { output_message(STRING_DELETE_REG_CLASS_FAILED, reg_key_name);return;
exit(1);
return;
If the process is going to exit anyway, freeing memory is a waste of time.