[FFmpeg-cvslog] r13473 - trunk/libavcodec/imgresample.c

michael subversion
Tue May 27 23:12:28 CEST 2008


Author: michael
Date: Tue May 27 23:12:28 2008
New Revision: 13473

Log:
memleak / fixes CID118


Modified:
   trunk/libavcodec/imgresample.c

Modified: trunk/libavcodec/imgresample.c
==============================================================================
--- trunk/libavcodec/imgresample.c	(original)
+++ trunk/libavcodec/imgresample.c	Tue May 27 23:12:28 2008
@@ -447,7 +447,7 @@ ImgReSampleContext *img_resample_full_in
     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;




More information about the ffmpeg-cvslog mailing list