1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

fix mem leak in recv message error, always free msg

This commit is contained in:
winlin 2014-05-02 12:44:38 +08:00
parent 52d1fa8df5
commit 5b98a27256
3 changed files with 5 additions and 1 deletions

View file

@ -454,7 +454,6 @@ int SrsRtmpClient::connect_app(string app, string tc_url)
if (true) {
SrsConnectAppPacket* pkt = new SrsConnectAppPacket();
pkt->command_object = SrsAmf0Any::object();
pkt->command_object->set("app", SrsAmf0Any::str(app.c_str()));
pkt->command_object->set("swfUrl", SrsAmf0Any::str());
pkt->command_object->set("tcUrl", SrsAmf0Any::str(tc_url.c_str()));