From 1b304321eff1e7d8b690e3e16fc418527b72b65b Mon Sep 17 00:00:00 2001 From: Bernhard Miklautz Date: Mon, 16 Sep 2013 17:23:26 +0200 Subject: [PATCH] winpr/registry: Fixed double free fixes #1479 --- winpr/libwinpr/registry/registry_reg.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/winpr/libwinpr/registry/registry_reg.c b/winpr/libwinpr/registry/registry_reg.c index 559c4a904..ea9e0f9ca 100644 --- a/winpr/libwinpr/registry/registry_reg.c +++ b/winpr/libwinpr/registry/registry_reg.c @@ -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)