From 05cce971407e13d30e2b0470b2fa3c43f5135180 Mon Sep 17 00:00:00 2001 From: winlin Date: Fri, 24 Oct 2014 13:23:52 +0800 Subject: [PATCH] for bug #186, read the args when discovery it. 2.0.6 --- trunk/src/rtmp/srs_protocol_stack.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/trunk/src/rtmp/srs_protocol_stack.cpp b/trunk/src/rtmp/srs_protocol_stack.cpp index ccaffb285..397095b5f 100644 --- a/trunk/src/rtmp/srs_protocol_stack.cpp +++ b/trunk/src/rtmp/srs_protocol_stack.cpp @@ -1877,6 +1877,7 @@ int SrsConnectAppPacket::decode(SrsStream* stream) // read the instance if ((ret = any->read(stream)) != ERROR_SUCCESS) { srs_error("amf0 decode connect args failed. ret=%d", ret); + srs_freep(any); return ret; }