Although RTMP_ConnectStream() was failed, librtmp's internal memory is not freed by RTMP_ConnectStream(), so RTMP_Close() should be called before RTMP_Free() https://bugzilla.gnome.org/show_bug.cgi?id=797058
rtmpsrc/sink: These plugins require librtmp from http://rtmpdump.mplayerhq.hu/ You have to build librtmp with -fPIC to be able to use it with the GStreamer plugin: make XCFLAGS="-fPIC"