diff --git a/libavformat/utils.c b/libavformat/utils.c index ae71763a87..05d4fda52c 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -470,8 +470,8 @@ int av_open_input_stream(AVFormatContext **ic_ptr, goto fail; ic->pb = ic->pb ? ic->pb : pb; // don't leak custom pb if it wasn't set above - *ic_ptr = ic; fail: + *ic_ptr = ic; av_dict_free(&opts); return err; }