Commit b79bccba authored by Andrey Myznikov's avatar Andrey Myznikov Committed by Michael Niedermayer

avformat/librtmp: Fix memory leak if RTMP_ConnectStream() fails

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 05c78f34
......@@ -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;
}
......
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