fix memory leaks in msg and broadcast_channel