bool isStartedConsumer = NSIsStartedConsumer();
NS_VERIFY_NOT_NULL(isStartedConsumer == true ? (void *) 1 : NULL, NS_ERROR);
- char * queryAddr = NSGetQueryAddress(serverAddress);
+ char * queryAddr = OICStrdup(serverAddress);
NS_VERIFY_NOT_NULL(queryAddr, NS_ERROR);
NSMQTopicAddress * topicAddr = (NSMQTopicAddress *)OICMalloc(sizeof(NSMQTopicAddress));
return NS_FAIL;
}
- topicAddr->serverAddr = NSGetQueryAddress(serverAddress);
+ topicAddr->serverAddr = OICStrdup(serverAddress);
topicAddr->topicName = OICStrdup(topicName);
NS_LOG_V(DEBUG, "input Topic Name : %s", topicAddr->topicName);
"Configuration must set to true.");
if (topicSubData)
{
- OICFreeAndSetToNull(&topicSubData);
+ OICFreeAndSetToNull((void**)&topicSubData);
}
pthread_mutex_unlock(&nsInitMutex);
return NS_FAIL;
"Configuration must set to true.");
if (topicSubData)
{
- OICFreeAndSetToNull(&topicSubData);
+ OICFreeAndSetToNull((void**)&topicSubData);
}
pthread_mutex_unlock(&nsInitMutex);
return NS_FAIL;