Searched refs:copyAppId (Results 1 – 2 of 2) sorted by relevance
60 char *copyAppId = (char *)HcMalloc(appIdLen, 0); in AddCallbackIfNotExist() local61 if (copyAppId == NULL) { in AddCallbackIfNotExist()65 if (strcpy_s(copyAppId, appIdLen, appId) != EOK) { in AddCallbackIfNotExist()67 HcFree(copyAppId); in AddCallbackIfNotExist()73 HcFree(copyAppId); in AddCallbackIfNotExist()78 HcFree(copyAppId); in AddCallbackIfNotExist()83 entry.appId = copyAppId; in AddCallbackIfNotExist()88 HcFree(copyAppId); in AddCallbackIfNotExist()
183 char *copyAppId = (char *)HcMalloc(appIdLen, 0); in AddListenerIfNotExist() local184 if (copyAppId == NULL) { in AddListenerIfNotExist()188 if (strcpy_s(copyAppId, appIdLen, appId) != HC_SUCCESS) { in AddListenerIfNotExist()190 HcFree(copyAppId); in AddListenerIfNotExist()196 HcFree(copyAppId); in AddListenerIfNotExist()202 HcFree(copyAppId); in AddListenerIfNotExist()207 entry.appId = copyAppId; in AddListenerIfNotExist()