add: if (host) WMReleaseHost(host);
context: didInitialize(ConnectionDelegate *self, WMConnection *cPtr){    int state = WMGetConnectionState(cPtr);    if (state == WCConnected) {        fprintf(stderr, "connected to '%s:%s'\n", WMGetConnectionAddress(cPtr),                WMGetConnectionService(cPtr));        initialized = 1;        return;    } else {        wsyserrorwithcode(WCErrorCode, "Unable to connect");        exit(1);    }}