mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +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;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
packet_buffer = NULL;
|
||||||
section->pi.stream_avail -= len;
|
section->pi.stream_avail -= len;
|
||||||
payload_written += payload_len;
|
payload_written += payload_len;
|
||||||
section->pi.packet_start_unit_indicator = FALSE;
|
section->pi.packet_start_unit_indicator = FALSE;
|
||||||
|
|
Loading…
Reference in a new issue