GObject has an arbitrary limit on the object struct size of 0xffff
bytes. It is expected that any large fields be separately allocated.
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
virStoragePoolObjListPtr pools;
virNodeDeviceObjListPtr devs;
int numCells;
- testCell cells[MAX_CELLS];
+ testCell *cells;
size_t numAuths;
testAuthPtr auths;
g_free(driver->auths[i].username);
g_free(driver->auths[i].password);
}
+ g_free(driver->cells);
g_free(driver->auths);
testDriverDisposed = true;
/* Numa setup */
privconn->numCells = 2;
+ privconn->cells = g_new0(testCell, privconn->numCells);
for (i = 0; i < privconn->numCells; i++) {
privconn->cells[i].numCpus = 8;
privconn->cells[i].mem = (i + 1) * 2048 * 1024;