Fixed possible resource leak in multicast discovery client