Source
tmp = zbx_dsprintf(NULL, ZBX_POST_DATASTORE_GET, get_vmware_service_objects()[service->type].property_collector,
/*
** Copyright (C) 2001-2025 Zabbix SIA
**
** This program is free software: you can redistribute it and/or modify it under the terms of
** the GNU Affero General Public License as published by the Free Software Foundation, version 3.
**
** This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
** without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
** See the GNU Affero General Public License for more details.
**
** You should have received a copy of the GNU Affero General Public License along with this program.
** If not, see <https://www.gnu.org/licenses/>.
**/
ZBX_PTR_VECTOR_IMPL(vmware_datastore_ptr, zbx_vmware_datastore_t *)
/******************************************************************************
* *
* Purpose: frees resources allocated to store datastore name data *
* *
* Parameters: dsname - [IN] datastore name *
* *
******************************************************************************/
void vmware_dsname_free(zbx_vmware_dsname_t *dsname)
{
zbx_vector_vmware_hvdisk_destroy(&dsname->hvdisks);
zbx_free(dsname->name);
zbx_free(dsname->uuid);
zbx_free(dsname);
}
/******************************************************************************
* *
* Purpose: frees resources allocated to store diskextent data *
* *
* Parameters: diskextent - [IN] *
* *
******************************************************************************/
static void vmware_diskextent_free(zbx_vmware_diskextent_t *diskextent)
{
zbx_free(diskextent->diskname);
zbx_free(diskextent);
}
/******************************************************************************
* *
* Purpose: frees memory of vector element *
* *
******************************************************************************/
static void zbx_str_uint64_pair_free(zbx_str_uint64_pair_t data)
{