mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 16:18:16 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue