changeset 6912:941a4e753961 libavcodec

memleak / fixes CID118
author michael
date Tue, 27 May 2008 21:12:28 +0000
parents 0e2576b1e753
children e716466d3665
files imgresample.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/imgresample.c	Tue May 27 19:44:56 2008 +0000
+++ b/imgresample.c	Tue May 27 21:12:28 2008 +0000
@@ -447,7 +447,7 @@
     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;