mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
libxl: replace VIR_FREE with g_free in all *Dispose() functions
Signed-off-by: Laine Stump <laine@redhat.com> Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
parent
c043497c1c
commit
0ba9f66f3d
@ -76,16 +76,16 @@ libxlDriverConfigDispose(void *obj)
|
||||
if (cfg->logger)
|
||||
libxlLoggerFree(cfg->logger);
|
||||
|
||||
VIR_FREE(cfg->configBaseDir);
|
||||
VIR_FREE(cfg->configDir);
|
||||
VIR_FREE(cfg->autostartDir);
|
||||
VIR_FREE(cfg->logDir);
|
||||
VIR_FREE(cfg->stateDir);
|
||||
VIR_FREE(cfg->libDir);
|
||||
VIR_FREE(cfg->saveDir);
|
||||
VIR_FREE(cfg->autoDumpDir);
|
||||
VIR_FREE(cfg->lockManagerName);
|
||||
VIR_FREE(cfg->channelDir);
|
||||
g_free(cfg->configBaseDir);
|
||||
g_free(cfg->configDir);
|
||||
g_free(cfg->autostartDir);
|
||||
g_free(cfg->logDir);
|
||||
g_free(cfg->stateDir);
|
||||
g_free(cfg->libDir);
|
||||
g_free(cfg->saveDir);
|
||||
g_free(cfg->autoDumpDir);
|
||||
g_free(cfg->lockManagerName);
|
||||
g_free(cfg->channelDir);
|
||||
virFirmwareFreeList(cfg->firmwares, cfg->nfirmwares);
|
||||
}
|
||||
|
||||
|
@ -228,7 +228,7 @@ libxlMigrationDstArgsDispose(void *obj)
|
||||
libxlMigrationDstArgs *args = obj;
|
||||
|
||||
libxlMigrationCookieFree(args->migcookie);
|
||||
VIR_FREE(args->socks);
|
||||
g_free(args->socks);
|
||||
virObjectUnref(args->conn);
|
||||
virObjectUnref(args->vm);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user