From: Vincent Penquerc'h Date: Wed, 9 Apr 2014 12:43:10 +0000 (+0100) Subject: tsmux: prevent possible double free on error path X-Git-Tag: 1.19.3~507^2~11467 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d6dc0665274cfbe2103fb149df3891d47e595230;p=platform%2Fupstream%2Fgstreamer.git tsmux: prevent possible double free on error path Spotted while looking at a Coverity issue in the area. --- diff --git a/gst/mpegtsmux/tsmux/tsmux.c b/gst/mpegtsmux/tsmux/tsmux.c index 27ab429..1990dbd 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;