]> git.ipfire.org Git - thirdparty/libvirt.git/commit
ch: Correctly ref and close the virCHMonitor in virCHMonitorNew
authorWilliam Douglas <william.douglas@intel.com>
Fri, 1 Oct 2021 18:12:34 +0000 (11:12 -0700)
committerLaine Stump <laine@redhat.com>
Tue, 5 Oct 2021 04:07:23 +0000 (00:07 -0400)
commitbfaac4c2b11e0070d19570ad0f4273a93ed5dbec
tree1eb78d0b9efade22a0845acaa84d05ffead609f1
parent5abf5949c18bfc3b49fad2eadf21e6bc359822aa
ch: Correctly ref and close the virCHMonitor in virCHMonitorNew

In virCHMontiorNew the monitor object was referenced an additional
time incorrectly preventing it from being disposed of, and wasn't
always closed properly on failure.

Signed-off-by: William Douglas <william.douglas@intel.com>
Reviewed-by: Laine Stump <laine@redhat.com>
src/ch/ch_monitor.c