tsmux: prevent possible double free on error path
Spotted while looking at a Coverity issue in the area.
This commit is contained in:
parent
d347809a82
commit
d6dc066527
@ -926,6 +926,7 @@ tsmux_section_write_packet (GstMpegTsSectionType * type,
|
||||
goto fail;
|
||||
}
|
||||
|
||||
packet_buffer = NULL;
|
||||
section->pi.stream_avail -= len;
|
||||
payload_written += payload_len;
|
||||
section->pi.packet_start_unit_indicator = FALSE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user