[FFmpeg-devel] [PATCH 1/3] avcodec/exr: Fix memleaks in decode_header()
Michael Niedermayer
michael at niedermayer.cc
Thu Feb 1 23:50:44 EET 2018
On Wed, Jan 31, 2018 at 09:04:54PM +0100, Moritz Barsnick wrote:
> On Wed, Jan 31, 2018 at 19:20:08 +0100, Michael Niedermayer wrote:
>
> > @@ -1458,8 +1465,10 @@ static int decode_header(EXRContext *s, AVFrame *frame)
> >
> > s->channels = av_realloc(s->channels,
> > ++s->nb_channels * sizeof(EXRChannel));
> > - if (!s->channels)
> > - return AVERROR(ENOMEM);
> > + if (!s->channels) {
> > + ret = AVERROR(ENOMEM);;
> ^^
> Duplicate semicolon. This should have given you a new warning.
will apply with this fixed
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
If you drop bombs on a foreign country and kill a hundred thousand
innocent people, expect your government to call the consequence
"unprovoked inhuman terrorist attacks" and use it to justify dropping
more bombs and killing more people. The technology changed, the idea is old.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180201/8e93d39f/attachment.sig>
More information about the ffmpeg-devel
mailing list