[FFmpeg-devel] Fix memory leak in av_find_stream_info [PATCH]
Samuli Valo
samuli.valo
Mon Nov 1 14:49:22 CET 2010
On 11/01/2010 01:55 PM, Michael Niedermayer wrote:
> On Mon, Nov 01, 2010 at 12:26:14PM +0200, Samuli Valo wrote:
>> Hi,
>>
>> There seems to be memory leak in av_find_stream_info(). On
>> libavformat/utils.c:2286 pkt is allocated by av_dup_packet() but its
>> never freed. This should be fixed by attached patch.
> your patch looks like adding double frees
> these packets are in a packet buffer and will be freed or if not then there
> is missing code in some cases to free the content of the packet buffer
Hi,
Ok, so it seems. Back to valgrind...
Regards,
Samuli
--
* Samuli Valo samuli.valo at picturall.com
* Picturall Ltd. gsm: +358 40 582 9016
* http://www.picturall.com
More information about the ffmpeg-devel
mailing list