From c1815c3700241f69ba4d0387f57b057dd0d5b427 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 27 May 2008 21:12:28 +0000 Subject: [PATCH] memleak / fixes CID118 Originally committed as revision 13473 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/imgresample.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/imgresample.c b/libavcodec/imgresample.c index d9387f838..79f45f940 100644 --- a/libavcodec/imgresample.c +++ b/libavcodec/imgresample.c @@ -447,7 +447,7 @@ ImgReSampleContext *img_resample_full_init(int owidth, int oheight, if (!s) return NULL; if((unsigned)owidth >= UINT_MAX / (LINE_BUF_HEIGHT + NB_TAPS)) - return NULL; + goto fail; s->line_buf = av_mallocz(owidth * (LINE_BUF_HEIGHT + NB_TAPS)); if (!s->line_buf) goto fail; -- 2.34.1