ui/ncurses: Fix discover_client leak