connect-server-dialog: don't leak memory