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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Andrey Myznikov 2014-01-14 01:42:42 +01:00 committed by Michael Niedermayer
parent 05c78f345b
commit b79bccba80

View File

@ -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;
}