[FFmpeg-devel] [PATCH] Fix memleak in lavf/asf.c
Måns Rullgård
mans
Fri Oct 12 01:29:39 CEST 2007
Ramiro Polla <ramiro at lisha.ufsc.br> writes:
> Hello,
>
> $subj
>
> issue102: https://roundup.mplayerhq.hu/roundup/ffmpeg/issue102
>
> Ramiro Polla
> Index: libavformat/asf.c
> ===================================================================
> --- libavformat/asf.c (revision 10710)
> +++ libavformat/asf.c (working copy)
> @@ -884,6 +884,8 @@
>
> for(i=0;i<s->nb_streams;i++) {
> AVStream *st = s->streams[i];
> + ASFStream *asf_st= st->priv_data;
Please put a space before the = sign if you have one after, which I
think you should.
> + av_free_packet(&asf_st->pkt);
> av_free(st->priv_data);
> av_free(st->codec->palctrl);
> }
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-devel
mailing list