regedit: Free the value name buffer from the default value name parser state if necessary (Valgrind).
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
75e9f670fa
commit
b501b2388d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue