From c218648ed5e66c2036e5ff2bd48db898facbc948 Mon Sep 17 00:00:00 2001 From: Timo Pollmeier Date: Thu, 22 Feb 2024 10:31:07 +0100 Subject: [PATCH] Fix: Free quoted strings in SCAP update Some of the quoted strings that were not freed in the CPE and CVE updates now are. --- src/manage_sql_secinfo.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/manage_sql_secinfo.c b/src/manage_sql_secinfo.c index adc8d3dda..4911b73d8 100644 --- a/src/manage_sql_secinfo.c +++ b/src/manage_sql_secinfo.c @@ -2101,6 +2101,9 @@ insert_scap_cpe_details (inserts_t *inserts, element_t cpe_item) quoted_name, quoted_details_xml); + g_free (quoted_name); + g_free (quoted_details_xml); + inserts->current_chunk_size++; return 0; @@ -2670,6 +2673,7 @@ insert_cve_from_entry (element_t entry, element_t last_modified, increment_transaction_size (transaction_size); g_free (quoted_summary); g_free (quoted_cvss_vector); + g_free (quoted_software); insert_cve_products (list, cve, time_published, time_modified, hashed_cpes, transaction_size);