tsmux: prevent possible double free on error path
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Wed, 9 Apr 2014 12:43:10 +0000 (13:43 +0100)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Wed, 9 Apr 2014 12:44:59 +0000 (13:44 +0100)
Spotted while looking at a Coverity issue in the area.

gst/mpegtsmux/tsmux/tsmux.c

index 27ab429..1990dbd 100644 (file)
@@ -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;