[libvirt] [PATCH 1/2] qemu: Save qemuDomainGetStats error

Erik Skultety eskultet at redhat.com
Wed Nov 28 11:49:14 UTC 2018


On Tue, Nov 27, 2018 at 11:23:22AM -0500, John Ferlan wrote:
> During qemuConnectGetAllDomainStats if qemuDomainGetStats causes
> a failure, then when collecting more than one domain's worth of
> statistics the loop in virDomainStatsRecordListFree would call
> virDomainFree which would call virResetLastError effectively wiping

A (probably) silly question, but why do we have to call virResetLastError as
within virDomainFree in the first place?

Erik




More information about the libvir-list mailing list