File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1656,7 +1656,9 @@ struct cvrf_score_set *cvrf_score_set_parse(xmlTextReaderPtr reader) {
1656
1656
if (xmlStrcmp (xmlTextReaderConstLocalName (reader ), TAG_VECTOR ) == 0 ) {
1657
1657
score_set -> vector = oscap_element_string_copy (reader );
1658
1658
} else if (xmlStrcmp (xmlTextReaderConstLocalName (reader ), TAG_PRODUCT_ID ) == 0 ) {
1659
- oscap_stringlist_add_string (score_set -> product_ids , oscap_element_string_copy (reader ));
1659
+ char * product_id = oscap_element_string_copy (reader );
1660
+ oscap_stringlist_add_string (score_set -> product_ids , product_id );
1661
+ free (product_id );
1660
1662
} else if (xmlStrcmp (xmlTextReaderConstLocalName (reader ), TAG_BASE_SCORE ) == 0 ) {
1661
1663
cvrf_score_set_add_metric (score_set , CVSS_BASE , oscap_element_string_copy (reader ));
1662
1664
} else if (xmlStrcmp (xmlTextReaderConstLocalName (reader ), TAG_ENVIRONMENTAL_SCORE ) == 0 ) {
You can’t perform that action at this time.
0 commit comments