From 98c9c3048d88acd81748466f7970e897ccbe81f1 Mon Sep 17 00:00:00 2001 From: Nikolay Shirokovskiy Date: Wed, 28 Feb 2018 09:31:49 +0300 Subject: [PATCH] vz: fix ref/unref of domain obj in vzDomainRevertToSnapshot Signed-off-by: Nikolay Shirokovskiy --- src/vz/vz_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vz/vz_driver.c b/src/vz/vz_driver.c index c1e2ab8eec..6d02ef274f 100644 --- a/src/vz/vz_driver.c +++ b/src/vz/vz_driver.c @@ -2732,7 +2732,7 @@ vzDomainRevertToSnapshot(virDomainSnapshotPtr snapshot, unsigned int flags) virCheckFlags(VIR_DOMAIN_SNAPSHOT_REVERT_PAUSED, -1); - if (!(dom = vzDomObjFromDomain(snapshot->domain))) + if (!(dom = vzDomObjFromDomainRef(snapshot->domain))) return -1; if (virDomainRevertToSnapshotEnsureACL(snapshot->domain->conn, dom->def) < 0)