[FFmpeg-devel] [PATCH] Found a memory leak in dvbsubdec.c

Wim Vander Schelden lists at fixnum.org
Tue Jan 21 14:52:06 CET 2014


Hi,

When running ffmpeg with valgrind, I discovered a leak in dvbsubdec.c. It
would sometimes decrease the number of rectangles in an AVSubtitle after
allocating the rectangles, without freeing the additional rectangles. The
attached patch fixes this by calculating and allocating the correct amount
of rectangles ahead of time.

Kind regards,

Wim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fixed-a-memory-leak-in-dvbsubenc.c-sub-num_rects-was.patch
Type: text/x-patch
Size: 1321 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140121/2c71f825/attachment.bin>


More information about the ffmpeg-devel mailing list