diff options
author | Andrey Myznikov <andrey.myznikov@gmail.com> | 2014-01-14 01:42:42 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-01-14 01:59:23 +0100 |
commit | b79bccba80129154121307a7754f69911bca2163 (patch) | |
tree | 0afa36ddf543c4230f0af23e164309f77e6a6ad9 /libavformat | |
parent | 05c78f345b623a3eed203ab17da6e1419d56abd0 (diff) | |
download | ffmpeg-streaming-b79bccba80129154121307a7754f69911bca2163.zip ffmpeg-streaming-b79bccba80129154121307a7754f69911bca2163.tar.gz |
avformat/librtmp: Fix memory leak if RTMP_ConnectStream() fails
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/librtmp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/librtmp.c b/libavformat/librtmp.c index 5b4c39d..f0b5929 100644 --- a/libavformat/librtmp.c +++ b/libavformat/librtmp.c @@ -134,6 +134,9 @@ static int rtmp_open(URLContext *s, const char *uri, int flags) fail: if (filename != s->filename) av_freep(&filename); + if (rc) + RTMP_Close(r); + return rc; } |