summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2014-04-09 13:43:10 +0100
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2014-04-09 13:44:59 +0100
commitd6dc0665274cfbe2103fb149df3891d47e595230 (patch)
tree6aff79d98d65fa6f50b40386f8a6c1897eb6510d /gst
parentd347809a82e24057302f948269392e76aaacea10 (diff)
downloadgstreamer-plugins-bad-d6dc0665274cfbe2103fb149df3891d47e595230.tar.gz
tsmux: prevent possible double free on error path
Spotted while looking at a Coverity issue in the area.
Diffstat (limited to 'gst')
-rw-r--r--gst/mpegtsmux/tsmux/tsmux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/mpegtsmux/tsmux/tsmux.c b/gst/mpegtsmux/tsmux/tsmux.c
index 27ab4290b..1990dbd00 100644
--- a/gst/mpegtsmux/tsmux/tsmux.c
+++ b/gst/mpegtsmux/tsmux/tsmux.c
@@ -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;