Commit 991cf95f authored by Steven Liu's avatar Steven Liu

avformat/rtmpproto: fix memleak when open rtmp failed

Signed-off-by: 's avatarSteven Liu <lq@chinaffmpeg.org>
parent 59697e42
......@@ -2880,6 +2880,9 @@ reconnect:
return 0;
fail:
av_freep(&rt->playpath);
av_freep(&rt->tcurl);
av_freep(&rt->flashver);
av_dict_free(opts);
rtmp_close(s);
return ret;
......
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