[FFmpeg-devel] Fix memory leak in av_find_stream_info [PATCH]

Michael Niedermayer michaelni
Mon Nov 1 12:55:12 CET 2010


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

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I am the wisest man alive, for I know one thing, and that is that I know
nothing. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20101101/b85ef845/attachment.pgp>



More information about the ffmpeg-devel mailing list