mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-30 11:24:17 +00:00
fix double free, priv_data is freed in av_open_input_stream
Originally committed as revision 5221 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
a3a80ddca0
commit
94ede53e57
@ -116,7 +116,6 @@ static int img_read_header(AVFormatContext *s1, AVFormatParameters *ap)
|
||||
|
||||
st = av_new_stream(s1, 0);
|
||||
if (!st) {
|
||||
av_free(s);
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
@ -178,7 +177,6 @@ static int img_read_header(AVFormatContext *s1, AVFormatParameters *ap)
|
||||
if (!s->is_pipe)
|
||||
url_fclose(f);
|
||||
fail:
|
||||
av_free(s);
|
||||
return AVERROR_IO;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user