Commit 050b60b2 authored by Kostya Shishkov's avatar Kostya Shishkov

free memory before return

Originally committed as revision 6351 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 1dbb339d
......@@ -459,6 +459,8 @@ static int ls_decode_picture(MJpegDecodeContext *s, int near, int point_transfor
}
} else if(ilv == 2) { /* sample interleaving */
av_log(s->avctx, AV_LOG_ERROR, "Sample interleaved images are not supported.\n");
av_free(state);
av_free(zero);
return -1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment