Skip to content

Commit

Permalink
Always free sql_cpes in insert_cve_products
Browse files Browse the repository at this point in the history
The string is always initialized with the start of the SQL, so it should be freed.

Co-authored-by: Ahmed <144101267+a-h-abdelsalam@users.noreply.github.com>
  • Loading branch information
timopollmeier and a-h-abdelsalam committed May 21, 2024
1 parent 0ba76f3 commit 821d9d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/manage_sql_secinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -2401,8 +2401,8 @@ insert_cve_products (element_t list, resource_t cve,
}
cleanup_iterator (&inserted_cpes);
increment_transaction_size (transaction_size);
g_string_free (sql_cpes, TRUE);
}
g_string_free (sql_cpes, TRUE);

/**
* Add the affected product references.
Expand Down

0 comments on commit 821d9d8

Please sign in to comment.