diff options
author | Art Clarke <aclarke@vlideshow.com> | 2009-07-08 08:26:57 +0000 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2009-07-08 08:26:57 +0000 |
commit | 56c6cf287b9f1d25f4c91e00892c5ab3f8436d10 (patch) | |
tree | 5cbc290d258cc0791b72c7bd9e4dbe80c86041e4 /libavformat/utils.c | |
parent | 5c56e7469799c2b820bfc24f952931ead77e053b (diff) | |
download | ffmpeg-56c6cf287b9f1d25f4c91e00892c5ab3f8436d10.tar.gz |
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
Originally committed as revision 19370 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index cd189712c0..3fce3fa87b 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -499,7 +499,7 @@ int av_open_input_file(AVFormatContext **ic_ptr, const char *filename, av_freep(&pd->buf); if (pb) url_fclose(pb); - *ic_ptr = NULL; + av_freep(ic_ptr); return err; } |