rtmp: Always call rtmp_close() on rtmp_open() failure
authorAlexander Drozdov <adrozdoff@gmail.com>
Sat, 18 Oct 2014 14:02:32 +0000 (16:02 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Sat, 18 Oct 2014 15:37:11 +0000 (17:37 +0200)
commit0034314a69e76a53534a74cceef865cfcb7b42cc
tree20d4c92b37d7251611983553d6b67486073d4255
parentfc1eda543c6ef043300612db90da5cfd972af650
rtmp: Always call rtmp_close() on rtmp_open() failure

Prevent possible memory leaks.

Connect to nginx and request a non-existent resource to
trigger the issue.

CC: libav-stable@libav.org
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Uwe L. Korn <uwelk@xhochy.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavformat/rtmpproto.c