[FFmpeg-devel] [PATCH] libavformat/mov.c memleak bugfix

Baptiste Coudurier baptiste.coudurier
Fri Jan 25 12:40:02 CET 2008


Hi,

Zdenek Kabelac wrote:
> Hi
> 
> Here is a memleak patch for the allocation of MOVStreamContext in the
> mov_read_trak.
> 
> Also I believe it is save to check the sc pointer prior doing
> dereference - thought I've not checked very deep if this combination
> will never happen.
> 

I think the free can be done in a generic way in av_close_input_stream,
where st is freed.

The null dereference should not happen, if it happens it's a bug.

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
SMARTJOG S.A.                                    http://www.smartjog.com
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
Phone: +33 1 49966312




More information about the ffmpeg-devel mailing list