mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 12:10:37 +00:00
dashdemux: mpdparser: avoid double free of segment timeline node
The parsing function already frees the old value (if any), avoid a double free by not freeing it before calling the function without setting the pointer to NULL Coverity ID: 1212178
This commit is contained in:
parent
64bea0252b
commit
288e8d5c0e
1 changed files with 1 additions and 4 deletions
|
@ -1357,10 +1357,7 @@ gst_mpdparser_parse_mult_seg_base_type_ext (GstMultSegmentBaseType ** pointer,
|
|||
for (cur_node = a_node->children; cur_node; cur_node = cur_node->next) {
|
||||
if (cur_node->type == XML_ELEMENT_NODE) {
|
||||
if (xmlStrcmp (cur_node->name, (xmlChar *) "SegmentTimeline") == 0) {
|
||||
if (mult_seg_base_type->SegmentTimeline) {
|
||||
gst_mpdparser_free_segment_timeline_node
|
||||
(mult_seg_base_type->SegmentTimeline);
|
||||
}
|
||||
/* parse frees the segmenttimeline if any */
|
||||
gst_mpdparser_parse_segment_timeline_node
|
||||
(&mult_seg_base_type->SegmentTimeline, cur_node);
|
||||
} else if (xmlStrcmp (cur_node->name,
|
||||
|
|
Loading…
Reference in a new issue