# HG changeset patch # User benoit # Date 1247041617 0 # Node ID 8c0eb348c19bb155c8e6e511e09f601817cd950c # Parent 453175c733c41f7e989887328390db33db43a45b Fix mem leak when user preallocates an AVFormatContext, passes it to av_open_input_file(), but the file does not exist. Patch by Art Clarke a$(surname) xuggle com diff -r 453175c733c4 -r 8c0eb348c19b utils.c --- a/utils.c Mon Jul 06 21:54:37 2009 +0000 +++ b/utils.c Wed Jul 08 08:26:57 2009 +0000 @@ -499,7 +499,7 @@ av_freep(&pd->buf); if (pb) url_fclose(pb); - *ic_ptr = NULL; + av_freep(ic_ptr); return err; }