fix potential double free error

This commit is contained in:
Emmanuel Nicolet 2019-12-27 12:04:01 +01:00
parent 99850df96e
commit 69e5e97bdf

View File

@ -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++)