char *auth_idx_str = (char*)calloc(1, 128);
if(auth_idx_str == NULL) {
SAFE_DELETE(auth_info);
+ goto CATCH;
}
- CATCH_IF_FAIL(auth_idx_str != NULL);
+
snprintf(auth_idx_str, 127, "%d", auth_index);
auth_info->auth_index = auth_idx_str;
_asm_app_reg_t *app_reg = (_asm_app_reg_t*) calloc(1, sizeof(_asm_app_reg_t));
if(app_reg == NULL) {
g_list_free_full(key_id_list, free);
+ goto CATCH;
}
- CATCH_IF_FAIL(app_reg != NULL);
+
if (app_id != NULL) {
_INFO("app_id = [%s]", app_id);
app_reg->app_id = strdup(app_id);