Commit 94ede53e authored by Baptiste Coudurier's avatar Baptiste Coudurier

fix double free, priv_data is freed in av_open_input_stream

Originally committed as revision 5221 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent a3a80ddc
...@@ -116,7 +116,6 @@ static int img_read_header(AVFormatContext *s1, AVFormatParameters *ap) ...@@ -116,7 +116,6 @@ static int img_read_header(AVFormatContext *s1, AVFormatParameters *ap)
st = av_new_stream(s1, 0); st = av_new_stream(s1, 0);
if (!st) { if (!st) {
av_free(s);
return -ENOMEM; return -ENOMEM;
} }
...@@ -178,7 +177,6 @@ static int img_read_header(AVFormatContext *s1, AVFormatParameters *ap) ...@@ -178,7 +177,6 @@ static int img_read_header(AVFormatContext *s1, AVFormatParameters *ap)
if (!s->is_pipe) if (!s->is_pipe)
url_fclose(f); url_fclose(f);
fail: fail:
av_free(s);
return AVERROR_IO; return AVERROR_IO;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment