winpr/registry: Fixed double free

fixes #1479
This commit is contained in:
Bernhard Miklautz 2013-09-16 17:23:26 +02:00
parent b70835d73d
commit 1b304321ef

View File

@ -111,18 +111,6 @@ static void reg_load_finish(Reg* reg)
free(reg->buffer);
reg->buffer = NULL;
}
if (reg->line)
{
free(reg->line);
reg->line = NULL;
}
if (reg->next_line)
{
free(reg->next_line);
reg->next_line = NULL;
}
}
static RegVal* reg_load_value(Reg* reg, RegKey* key)