[libvirt] [PATCH 2/2] build: enforce reference count checking

Eric Blake eblake at redhat.com
Thu Mar 24 21:31:08 UTC 2011


On 03/24/2011 02:43 PM, Laine Stump wrote:
> On 03/18/2011 01:37 PM, Eric Blake wrote:
>> Add the compiler attribute to ensure we don't introduce any more
>> ref bugs like were just patched in commit 9741f34, then explicitly
>> mark the remaining places in code that are safe.
>>
>> * src/qemu/qemu_monitor.h (qemuMonitorUnref): Mark
>> ATTRIBUTE_RETURN_CHECK.
>> * src/conf/domain_conf.h (virDomainObjUnref): Likewise.
>> * src/conf/domain_conf.c (virDomainObjParseXML)
>> (virDomainLoadStatus): Fix offenders.
>> * src/openvz/openvz_conf.c (openvzLoadDomains): Likewise.
>> * src/vmware/vmware_conf.c (vmwareLoadDomains): Likewise.
>> * src/qemu/qemu_domain.c (qemuDomainObjBeginJob)
>> (qemuDomainObjBeginJobWithDriver)
>> (qemuDomainObjExitRemoteWithDriver): Likewise.
>> * src/qemu/qemu_monitor.c (QEMU_MONITOR_CALLBACK): Likewise.
>> Suggested by Daniel P. Berrange.
>> ---
>>   src/conf/domain_conf.c   |    6 ++++--
>>   src/conf/domain_conf.h   |    2 +-
>>   src/openvz/openvz_conf.c |    6 ++++--
>>   src/qemu/qemu_domain.c   |   11 ++++++++---
>>   src/qemu/qemu_monitor.c  |    2 +-
>>   src/qemu/qemu_monitor.h  |    2 +-
>>   src/qemu/qemu_process.c  |    3 ++-
>>   src/vmware/vmware_conf.c |    7 +++++--
>>   8 files changed, 26 insertions(+), 13 deletions(-)
> 
> ACK.

Thanks; pushed.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110324/ae8ea87d/attachment-0001.sig>


More information about the libvir-list mailing list