changeset 1038:5c750fb6b8cc libavformat

fix double free, priv_data is freed in av_open_input_stream
author bcoudurier
date Sun, 26 Mar 2006 14:06:00 +0000
parents aa2712de50bf
children 49b57ac270f7
files img.c
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/img.c	Sun Mar 26 13:34:51 2006 +0000
+++ b/img.c	Sun Mar 26 14:06:00 2006 +0000
@@ -116,7 +116,6 @@
 
     st = av_new_stream(s1, 0);
     if (!st) {
-        av_free(s);
         return -ENOMEM;
     }
 
@@ -178,7 +177,6 @@
     if (!s->is_pipe)
         url_fclose(f);
  fail:
-    av_free(s);
     return AVERROR_IO;
 }