[Ffmpeg-devel] [PATCH] leak in mpegts.c

Andy Brown abrown
Thu Mar 9 02:40:04 CET 2006

I couldn't find where the services that are populated during
mpegts_read_header() where ever cleaned.  This results in a leak since services
are dynamically allocated.  I verified that ts->services were still allocated at
the call to mgts_read_close() which frees the MpegTSContext.  The attached patch
adds a function to free any allocated services.  I added a call to this function
in the mgts_read_close() call.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mpegts_leak.patch
Type: text/x-patch
Size: 966 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20060308/1173c3b6/attachment.bin>

More information about the ffmpeg-devel mailing list