]> xenbits.xensource.com Git - libvirt.git/commit
maint: prohibit most uses of xmlGetProp
authorEric Blake <eblake@redhat.com>
Wed, 24 Nov 2010 20:08:55 +0000 (13:08 -0700)
committerEric Blake <eblake@redhat.com>
Wed, 24 Nov 2010 22:23:43 +0000 (15:23 -0700)
commit416c09bcc03ed3bcfece6cc653ddcb9d6537a2ef
treef1aa944ddc53a2491d71ea0185884f313ee9e499
parent117246e0f77b27131d91334726ce3b718ed79590
maint: prohibit most uses of xmlGetProp

Making this change makes it easier to spot the memory leaks
that will be fixed in the next patch.

* cfg.mk (sc_prohibit_xmlGetProp): New rule.
* .x-sc_prohibit_xmlGetProp: New exception.
* Makefile.am (EXTRA_DIST): Ship exception file.
* tools/virsh.c (cmdDetachInterface, cmdDetachDisk): Adjust
offenders.
* src/conf/storage_conf.c (virStoragePoolDefParseSource):
Likewise.
* src/conf/network_conf.c (virNetworkDHCPRangeDefParseXML)
(virNetworkIPParseXML): Likewise.
.x-sc_prohibit_xmlGetProp [new file with mode: 0644]
Makefile.am
cfg.mk
src/conf/network_conf.c
src/conf/storage_conf.c
tools/virsh.c