Merge pull request #9900 from CheezeCake/fix-double-free

fix potential double free error
This commit is contained in:
Twinaphex 2019-12-27 19:47:08 +01:00 committed by GitHub
commit 98618c052b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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