From 69e5e97bdfcdbdbabd12fc77166c1e825d3b3f24 Mon Sep 17 00:00:00 2001 From: Emmanuel Nicolet Date: Fri, 27 Dec 2019 12:04:01 +0100 Subject: [PATCH] fix potential double free error --- core_updater_list.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core_updater_list.c b/core_updater_list.c index 34e3a7cd06..994fed947a 100644 --- a/core_updater_list.c +++ b/core_updater_list.c @@ -729,6 +729,7 @@ bool core_updater_list_parse_network_data( /* Temporary data buffer is no longer required */ free(data_buf); + data_buf = NULL; /* Loop over lines */ for (i = 0; i < network_core_list->size; i++)