]> xenbits.xensource.com Git - libvirt.git/commitdiff
openvz: Remove unnecessary Unref in openvzLoadDomains
authorJohn Ferlan <jferlan@redhat.com>
Mon, 26 Mar 2018 15:36:43 +0000 (11:36 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 16 Apr 2018 12:45:18 +0000 (08:45 -0400)
Since there is no way to get to cleanup without dom being NULL,
this is a unnecessary Unref.

Signed-off-by: John Ferlan <jferlan@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/openvz/openvz_conf.c

index 23a02d749e8bd5a7719bec4a8e291fbd0304615f..a25eaf570ef89ca99c1974d629733b6ab6d93ac5 100644 (file)
@@ -626,7 +626,6 @@ int openvzLoadDomains(struct openvz_driver *driver)
     virCommandFree(cmd);
     VIR_FREE(temp);
     VIR_FREE(outbuf);
-    virObjectUnref(dom);
     virDomainDefFree(def);
     return -1;
 }