Commit b501b238 authored by Hugh McMaster's avatar Hugh McMaster Committed by Alexandre Julliard

regedit: Free the value name buffer from the default value name parser state if…

regedit: Free the value name buffer from the default value name parser state if necessary (Valgrind). Signed-off-by: 's avatarHugh McMaster <hugh.mcmaster@outlook.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 75e9f670
......@@ -699,6 +699,7 @@ static WCHAR *delete_key_state(struct parser *parser, WCHAR *pos)
/* handler for parser DEFAULT_VALUE_NAME state */
static WCHAR *default_value_name_state(struct parser *parser, WCHAR *pos)
{
HeapFree(GetProcessHeap(), 0, parser->value_name);
parser->value_name = NULL;
set_state(parser, DATA_START);
......
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