diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2006-03-26 14:06:00 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2006-03-26 14:06:00 +0000 |
commit | 94ede53e57e5864a1f94cb5cae25cd0b142212ae (patch) | |
tree | 5aacf88a8850c56340ef805c4d21eda926a2650e /libavformat | |
parent | a3a80ddca01c21cd198db89cca23547186a54598 (diff) | |
download | ffmpeg-94ede53e57e5864a1f94cb5cae25cd0b142212ae.tar.gz |
fix double free, priv_data is freed in av_open_input_stream
Originally committed as revision 5221 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/img.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libavformat/img.c b/libavformat/img.c index 1943c517d2..888fcfa8c3 100644 --- a/libavformat/img.c +++ b/libavformat/img.c @@ -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; } |