fix memory leak on rail_virtual_channel_event_data_received() -> StreamNew()

This commit is contained in:
weizhenwei 2017-06-13 15:51:14 +08:00
parent a2ecf403b2
commit 46b841be13
1 changed files with 2 additions and 0 deletions

View File

@ -620,9 +620,11 @@ static void* rail_virtual_channel_client_thread(void* arg)
if ((error = rail_order_recv(rail, data)))
{
Stream_Free(data, TRUE);
WLog_ERR(TAG, "rail_order_recv failed with error %"PRIu32"!", error);
break;
}
Stream_Free(data, TRUE);
}
}