diff options
author | Steven Liu <lq@chinaffmpeg.org> | 2019-10-10 10:07:53 +0800 |
---|---|---|
committer | Steven Liu <lq@chinaffmpeg.org> | 2019-10-28 14:26:14 +0800 |
commit | 991cf95fdeebc3aff34c3dd094df0589f7a02f68 (patch) | |
tree | 8f67dd098a3478a434a8e560a441187c783771ac /libavformat | |
parent | 59697e42e1b7535863794d301fbdb75e119f4683 (diff) | |
download | ffmpeg-streaming-991cf95fdeebc3aff34c3dd094df0589f7a02f68.zip ffmpeg-streaming-991cf95fdeebc3aff34c3dd094df0589f7a02f68.tar.gz |
avformat/rtmpproto: fix memleak when open rtmp failed
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rtmpproto.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index eb08d4d..42c6b94 100644 --- a/libavformat/rtmpproto.c +++ b/libavformat/rtmpproto.c @@ -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; |