libvirt/src/cpu
Eric Blake a7cfd709f4 build: prohibit raw malloc and free
Our HACKING discourages use of malloc and free, for at least
a couple of years now.  But we weren't enforcing it, until now :)

For now, I've exempted python and tests, and will clean those up
in subsequent patches.  Examples should be permanently exempt,
since anyone copying our examples won't have use of our
internal-only memory.h via libvirt_util.la.

* cfg.mk (sc_prohibit_raw_allocation): New rule.
(exclude_file_name_regexp--sc_prohibit_raw_allocation): and
exemptions.
* src/cpu/cpu.c (cpuDataFree): Avoid false positive.
* src/conf/network_conf.c (virNetworkDNSSrvDefParseXML): Fix
offenders.
* src/libxl/libxl_conf.c (libxlMakeDomBuildInfo, libxlMakeVfb)
(libxlMakeDeviceModelInfo): Likewise.
* src/rpc/virnetmessage.c (virNetMessageSaveError): Likewise.
* tools/virsh.c (_vshMalloc, _vshCalloc): Likewise.
2012-02-03 10:41:45 -07:00
..
cpu_generic.c Rename hash.h and hash.c to virhash.h and virhash.c 2012-01-26 14:11:13 +00:00
cpu_generic.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
cpu_map.c maint: rename virBufferVSprintf to virBufferAsprintf 2011-05-05 13:47:40 -06:00
cpu_map.h cpu: Add support for overriding path to CPU map XML file 2010-12-01 14:12:54 +01:00
cpu_map.xml x86: add kvm32 and kvm64, update qemu64 2012-01-27 16:51:49 +01:00
cpu_powerpc.c Add PPC cpu driver. 2011-11-30 12:38:17 -07:00
cpu_powerpc.h Add PPC cpu driver. 2011-11-30 12:38:17 -07:00
cpu_x86_data.h cpu: Unify CPUID data structures 2010-12-14 11:12:58 +01:00
cpu_x86.c cpu: Update guest CPU in host-* mode 2012-01-17 11:42:56 +01:00
cpu_x86.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
cpu.c build: prohibit raw malloc and free 2012-02-03 10:41:45 -07:00
cpu.h Remove virConnectPtr from virRaiseErrorFull 2011-04-17 07:22:23 +02:00