From: John Ferlan Date: Mon, 26 Mar 2018 15:36:43 +0000 (-0400) Subject: openvz: Remove unnecessary Unref in openvzLoadDomains X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=369e5a828f9bcd113268cdd3966b7dba3691c6b1;p=libvirt.git openvz: Remove unnecessary Unref in openvzLoadDomains Since there is no way to get to cleanup without dom being NULL, this is a unnecessary Unref. Signed-off-by: John Ferlan Reviewed-by: Ján Tomko --- diff --git a/src/openvz/openvz_conf.c b/src/openvz/openvz_conf.c index 23a02d749e..a25eaf570e 100644 --- a/src/openvz/openvz_conf.c +++ b/src/openvz/openvz_conf.c @@ -626,7 +626,6 @@ int openvzLoadDomains(struct openvz_driver *driver) virCommandFree(cmd); VIR_FREE(temp); VIR_FREE(outbuf); - virObjectUnref(dom); virDomainDefFree(def); return -1; }