[FFmpeg-devel] [PATCH] Fix memory leak while opening input JPG that doesn't exist
Michael Niedermayer
michaelni
Tue Aug 10 19:50:06 CEST 2010
On Wed, Jul 28, 2010 at 12:09:01PM +0200, Przemys?aw Sobala wrote:
> Hello
> I came across a memory leak while opening non-existing JPG file (local or
> remote-404) for input. Below patch fixes it.
>
> --
> Cheers
> pszemus
>
>
> Index: libavformat/utils.c
> ===================================================================
> --- libavformat/utils.c (wersja 24571)
> +++ libavformat/utils.c (kopia robocza)
> @@ -474,6 +474,7 @@
> if (st) {
> av_free(st->priv_data);
> av_free(st->codec->extradata);
> + av_free(st->codec);
> }
> av_free(st);
> }
>
looks ok
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
While the State exists there can be no freedom; when there is freedom there
will be no State. -- Vladimir Lenin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100810/f75babea/attachment.pgp>
More information about the ffmpeg-devel
mailing list