[FFmpeg-devel] [PATCH] lavf/wtvenc: fix s[tp]_pairs memleak.

Clément Bœsch ubitux at gmail.com
Tue Nov 13 20:07:15 CET 2012


On Mon, Nov 12, 2012 at 10:41:09PM +0100, Clément Bœsch wrote:
> On Sun, Nov 11, 2012 at 11:55:52PM +0100, Clément Bœsch wrote:
> > ---
> >  libavformat/wtvenc.c | 3 +++
> >  1 file changed, 3 insertions(+)
> > 
> > diff --git a/libavformat/wtvenc.c b/libavformat/wtvenc.c
> > index 9cc5a05..8300662 100644
> > --- a/libavformat/wtvenc.c
> > +++ b/libavformat/wtvenc.c
> > @@ -730,6 +730,9 @@ static int write_trailer(AVFormatContext *s)
> >      avio_wl32(pb, file_end_pos >> WTV_SECTOR_BITS);
> >  
> >      avio_flush(pb);
> > +
> > +    av_free(wctx->sp_pairs);
> > +    av_free(wctx->st_pairs);
> >      return 0;
> >  }
> >  
> 
> I'll push this tomorrow if I see no comment, there is too much yellow on
> FATE because of this.
> 

Pushed.

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20121113/8c2df019/attachment.asc>


More information about the ffmpeg-devel mailing list