changeset 5098:8c0eb348c19b libavformat

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
author benoit
date Wed, 08 Jul 2009 08:26:57 +0000
parents 453175c733c4
children f4119afe7cd9
files utils.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
 
 }