Skip to content

Commit

Permalink
Fix: Free quoted strings in SCAP update
Browse files Browse the repository at this point in the history
Some of the quoted strings that were not freed in the CPE and CVE
updates now are.
  • Loading branch information
timopollmeier committed Feb 22, 2024
1 parent baaefed commit c218648
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/manage_sql_secinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit c218648

Please sign in to comment.