connectGetCapability automatic free of C string