Issue #46. Fixed memory leak between transport and udp socket.