mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-03 21:42:09 +00:00
avformat/rtmpproto: fix memleak when open rtmp failed
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
This commit is contained in:
parent
59697e42e1
commit
991cf95fde
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user