summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d11224e)
raw | patch | inline | side by side (parent: d11224e)
author | Francesco Romani <fromani@redhat.com> | |
Tue, 13 Dec 2016 15:34:24 +0000 (16:34 +0100) | ||
committer | Francesco Romani <fromani@redhat.com> | |
Tue, 13 Dec 2016 15:34:42 +0000 (16:34 +0100) |
Avoiding duplication of the code and let's use
the new lv_disconnect() helper in the lv_shutdown() callback.
Signed-off-by: Francesco Romani <fromani@redhat.com>
the new lv_disconnect() helper in the lv_shutdown() callback.
Signed-off-by: Francesco Romani <fromani@redhat.com>
src/virt.c | patch | blob | history |
diff --git a/src/virt.c b/src/virt.c
index 471bdd7481873e40173556612ba6d48c7a23b205..4dce6e038836505f7759d673a16a10424b4acd34 100644 (file)
--- a/src/virt.c
+++ b/src/virt.c
lv_fini_instance(i);
}
- if (conn != NULL)
- virConnectClose(conn);
- conn = NULL;
+ lv_disconnect();
ignorelist_free(il_domains);
il_domains = NULL;