if (ret != DATACONTROL_ERROR_NONE)
g_hash_table_remove(__socket_pair_hash, caller_app_id);
- bundle_free(b);
return ret;
}
}
res = __set_result(b, DATACONTROL_TYPE_SQL_SELECT, NULL);
ret = __send_result(res, DATACONTROL_TYPE_UNDEFINED, NULL);
+ bundle_free(res);
caller_app_id = (char *)bundle_get_val(b, AUL_K_CALLER_APPID);
socket_info = g_hash_table_lookup(__socket_pair_hash, caller_app_id);
}
res = __set_result(b, DATACONTROL_TYPE_SQL_BULK_INSERT, NULL);
ret = __send_result(res, DATACONTROL_TYPE_SQL_BULK_INSERT, (void *)bulk_result_data);
+ bundle_free(res);
g_hash_table_remove(__request_table, &request_id);
return ret;
res = __set_result(b, DATACONTROL_TYPE_SQL_SELECT, db_handle);
ret = __send_result(res, DATACONTROL_TYPE_SQL_SELECT, db_handle);
+ bundle_free(res);
g_hash_table_remove(__request_table, &request_id);
return ret;
res = __set_result(b, DATACONTROL_TYPE_SQL_INSERT, (void *)&row_id);
ret = __send_result(res, DATACONTROL_TYPE_SQL_INSERT, NULL);
+ bundle_free(res);
g_hash_table_remove(__request_table, &request_id);
return ret;
res = __set_result(b, DATACONTROL_TYPE_SQL_UPDATE, NULL);
ret = __send_result(res, DATACONTROL_TYPE_SQL_UPDATE, NULL);
+ bundle_free(res);
g_hash_table_remove(__request_table, &request_id);
return ret;
res = __set_result(b, DATACONTROL_TYPE_SQL_DELETE, NULL);
ret = __send_result(res, DATACONTROL_TYPE_SQL_DELETE, NULL);
+ bundle_free(res);
g_hash_table_remove(__request_table, &request_id);
return ret;
{
bundle *res;
bundle *b;
+ int ret;
LOGI("Send an error for request id: %d", request_id);
}
res = __set_result(b, DATACONTROL_TYPE_ERROR, (void *)error);
+ ret = __send_result(res, DATACONTROL_TYPE_ERROR, NULL);
+ bundle_free(res);
- return __send_result(res, DATACONTROL_TYPE_ERROR, NULL);
+ return ret;
}
}
res = __set_result(b, DATACONTROL_TYPE_MAP_BULK_ADD, NULL);
ret = __send_result(res, DATACONTROL_TYPE_MAP_BULK_ADD, (void *)bulk_result_data);
+ bundle_free(res);
g_hash_table_remove(__request_table, &request_id);
return ret;
res = __set_result(b, DATACONTROL_TYPE_UNDEFINED, NULL);
ret = __send_result(res, DATACONTROL_TYPE_UNDEFINED, NULL);
+ bundle_free(res);
g_hash_table_remove(__request_table, &request_id);
return ret;
res = __set_result(b, DATACONTROL_TYPE_MAP_GET, value_list);
ret = __send_result(res, DATACONTROL_TYPE_MAP_GET, value_list);
+ bundle_free(res);
g_hash_table_remove(__request_table, &request_id);
return ret;