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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/53/head
Andrey Myznikov 11 years ago committed by Michael Niedermayer
parent 05c78f345b
commit b79bccba80
  1. 3
      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;
}

Loading…
Cancel
Save