# HG changeset patch # User michael # Date 1211922748 0 # Node ID 941a4e753961008ded0cdc62af3396f2df377309 # Parent 0e2576b1e7531ac248945ccf6dba4214693bf5cc memleak / fixes CID118 diff -r 0e2576b1e753 -r 941a4e753961 imgresample.c --- 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;