From 3c31e6db051b36cdfa71dd4985134a04b21c65ff Mon Sep 17 00:00:00 2001 From: winlin Date: Fri, 24 Oct 2014 13:22:35 +0800 Subject: [PATCH] for bug #186, read the args when discovery it. 1.0.4 --- 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; }