From d6dc0665274cfbe2103fb149df3891d47e595230 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Wed, 9 Apr 2014 13:43:10 +0100 Subject: [PATCH] tsmux: prevent possible double free on error path Spotted while looking at a Coverity issue in the area. --- gst/mpegtsmux/tsmux/tsmux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/mpegtsmux/tsmux/tsmux.c b/gst/mpegtsmux/tsmux/tsmux.c index 27ab4290be..1990dbd006 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;