aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-05-27 21:12:28 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-05-27 21:12:28 +0000
commitc1815c3700241f69ba4d0387f57b057dd0d5b427 (patch)
treefcdcf5ce7c5168ce12910bb569c4b49c49c6c3af /libavcodec
parentc2a3dcaf25e5771acd7f38a3a5e768e160cdc3d7 (diff)
downloadffmpeg-c1815c3700241f69ba4d0387f57b057dd0d5b427.tar.gz
memleak / fixes CID118
Originally committed as revision 13473 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/imgresample.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/imgresample.c b/libavcodec/imgresample.c
index d9387f8389..79f45f940b 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;