winlin

for bug #186, read the args when discovery it. 1.0.4

@@ -1877,6 +1877,7 @@ int SrsConnectAppPacket::decode(SrsStream* stream) @@ -1877,6 +1877,7 @@ int SrsConnectAppPacket::decode(SrsStream* stream)
1877 // read the instance 1877 // read the instance
1878 if ((ret = any->read(stream)) != ERROR_SUCCESS) { 1878 if ((ret = any->read(stream)) != ERROR_SUCCESS) {
1879 srs_error("amf0 decode connect args failed. ret=%d", ret); 1879 srs_error("amf0 decode connect args failed. ret=%d", ret);
  1880 + srs_freep(any);
1880 return ret; 1881 return ret;
1881 } 1882 }
1882 1883