libvirt/src/conf
Michal Privoznik 4e9d72be02 domain_conf: Unref video private data in virDomainVideoDefClear()
The private data for video definition is created in
virDomainVideoDefNew() and we attempt to free it in
virDomainVideoDefFree(). This seems to work, except
the free function calls clear function which zeroes
out the whole structure and thus virObjectUnref()
which is called on private data does nothing.

2,568 bytes in 107 blocks are definitely lost in loss record 207 of 213
   at 0x4A35476: calloc (vg_replace_malloc.c:752)
   by 0x50A6048: virAllocVar (viralloc.c:346)
   by 0x513CC5A: virObjectNew (virobject.c:243)
   by 0x4DC1DEE: qemuDomainVideoPrivateNew (qemu_domain.c:1337)
   by 0x51A6BD6: virDomainVideoDefNew (domain_conf.c:2831)
   by 0x51B9F06: virDomainVideoDefParseXML (domain_conf.c:15541)
   by 0x51CB761: virDomainDefParseXML (domain_conf.c:21158)
   by 0x51C5973: virDomainDefParseNode (domain_conf.c:21708)
   by 0x51C583A: virDomainDefParse (domain_conf.c:21663)
   by 0x51C58AE: virDomainDefParseFile (domain_conf.c:21688)

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
2019-09-26 16:57:59 +02:00
..
capabilities.c Always put _LAST enums on second line of VIR_ENUM_IMPL 2019-04-11 12:47:23 -04:00
capabilities.h conf: domain: use generic XML namespace types 2019-08-21 10:29:20 +02:00
checkpoint_conf.c conf: Use automatic pointers for xmlXPathContext 2019-09-19 14:31:15 +02:00
checkpoint_conf.h qemu: Pass correct qemuCaps to virDomainDefParseNode 2019-08-09 13:55:54 +02:00
cpu_conf.c conf: Introduce virCPUDefCheckFeatures 2019-06-20 14:02:36 +02:00
cpu_conf.h conf: Introduce virCPUDefCheckFeatures 2019-06-20 14:02:36 +02:00
device_conf.c lib: Format PCI address differently 2019-08-05 19:42:15 +02:00
device_conf.h device-conf: removed unneeded virDomainDeviceInfoCopy() 2019-06-26 09:24:09 +02:00
domain_addr.c lib: Format PCI address differently 2019-08-05 19:42:15 +02:00
domain_addr.h conf: domain: use #pragma once in headers 2019-06-13 17:05:08 +02:00
domain_audit.c lib: Unify PCI address formatting 2019-08-05 19:42:15 +02:00
domain_audit.h conf: domain: use #pragma once in headers 2019-06-13 17:05:08 +02:00
domain_capabilities.c qemu: Move rng model validation to domcaps 2019-08-06 19:45:50 -04:00
domain_capabilities.h qemu: Move rng model validation to domcaps 2019-08-06 19:45:50 -04:00
domain_conf.c domain_conf: Unref video private data in virDomainVideoDefClear() 2019-09-26 16:57:59 +02:00
domain_conf.h domain_conf: Fix str2enum translation of video driver name 2019-09-25 10:02:12 +02:00
domain_event.c
domain_event.h conf: domain: use #pragma once in headers 2019-06-13 17:05:08 +02:00
domain_nwfilter.c
domain_nwfilter.h conf: domain: use #pragma once in headers 2019-06-13 17:05:08 +02:00
interface_conf.c conf: Use automatic pointers for xmlXPathContext 2019-09-19 14:31:15 +02:00
interface_conf.h conf: misc: use #pragma once in headers 2019-06-13 17:05:09 +02:00
Makefile.inc.am backup: Allow for lists of checkpoint objects 2019-07-26 16:48:58 -05:00
moment_conf.c snapshot: Store both config and live XML in the snapshot domain 2019-09-11 13:09:45 +02:00
moment_conf.h snapshot: Store both config and live XML in the snapshot domain 2019-09-11 13:09:45 +02:00
netdev_bandwidth_conf.c conf: allow bandwidth parsing / formatting to include class ID 2019-06-17 15:19:54 +01:00
netdev_bandwidth_conf.h conf: allow bandwidth parsing / formatting to include class ID 2019-06-17 15:19:54 +01:00
netdev_vlan_conf.c Always put _LAST enums on second line of VIR_ENUM_IMPL 2019-04-11 12:47:23 -04:00
netdev_vlan_conf.h conf: network: use #pragma once in headers 2019-06-13 17:05:09 +02:00
netdev_vport_profile_conf.c
netdev_vport_profile_conf.h conf: network: use #pragma once in headers 2019-06-13 17:05:09 +02:00
network_conf.c conf: secret: Refactor cleanup in secretXMLParseNode 2019-09-19 14:31:15 +02:00
network_conf.h conf: network: use generic XML namespace types 2019-08-21 10:29:20 +02:00
network_event.c
network_event.h conf: network: use #pragma once in headers 2019-06-13 17:05:09 +02:00
networkcommon_conf.c
networkcommon_conf.h conf: network: use #pragma once in headers 2019-06-13 17:05:09 +02:00
node_device_conf.c conf: Use automatic pointers for xmlXPathContext 2019-09-19 14:31:15 +02:00
node_device_conf.h conf: node device: use #pragma once in headers 2019-06-13 17:05:09 +02:00
node_device_event.c
node_device_event.h conf: node device: use #pragma once in headers 2019-06-13 17:05:09 +02:00
node_device_util.c util: Don't include 'viralloc.h' into other header files 2019-04-10 09:12:04 +02:00
node_device_util.h conf: node device: use #pragma once in headers 2019-06-13 17:05:09 +02:00
numa_conf.c Always put _LAST enums on second line of VIR_ENUM_IMPL 2019-04-11 12:47:23 -04:00
numa_conf.h conf: misc: use #pragma once in headers 2019-06-13 17:05:09 +02:00
nwfilter_conf.c conf: Use automatic pointers for xmlXPathContext 2019-09-19 14:31:15 +02:00
nwfilter_conf.h conf: nwfilter: use #pragma once in headers 2019-06-13 17:05:09 +02:00
nwfilter_ipaddrmap.c
nwfilter_ipaddrmap.h conf: nwfilter: use #pragma once in headers 2019-06-13 17:05:09 +02:00
nwfilter_params.c
nwfilter_params.h conf: nwfilter: use #pragma once in headers 2019-06-13 17:05:09 +02:00
object_event_private.h conf: misc: use #pragma once in headers 2019-06-13 17:05:09 +02:00
object_event.c object_event: reference state only if virEventAddTimeout succeeded 2019-09-19 16:32:52 +02:00
object_event.h conf: misc: use #pragma once in headers 2019-06-13 17:05:09 +02:00
secret_conf.c conf: secret: Refactor cleanup in secretXMLParseNode 2019-09-19 14:31:15 +02:00
secret_conf.h conf: secret: Register VIR_AUTOPTR function for virSecretDef 2019-09-19 14:31:15 +02:00
secret_event.c
secret_event.h conf: misc: use #pragma once in headers 2019-06-13 17:05:09 +02:00
snapshot_conf_priv.h conf: snapshot: Provide a function to free virDomainSnapshotDiskDefPtr 2019-07-18 17:59:34 +02:00
snapshot_conf.c conf: Use automatic pointers for xmlXPathContext 2019-09-19 14:31:15 +02:00
snapshot_conf.h qemu: Pass correct qemuCaps to virDomainDefParseNode 2019-08-09 13:55:54 +02:00
storage_adapter_conf.c
storage_adapter_conf.h conf: storage: use #pragma once in headers 2019-06-13 17:05:09 +02:00
storage_capabilities.c
storage_capabilities.h conf: storage: use #pragma once in headers 2019-06-13 17:05:09 +02:00
storage_conf.c conf: Use VIR_AUTOPTR for xmlDoc and xmlXPath objects 2019-09-19 14:31:15 +02:00
storage_conf.h conf: storage: use generic XML namespace types 2019-08-21 10:29:20 +02:00
storage_event.c
storage_event.h conf: storage: use #pragma once in headers 2019-06-13 17:05:09 +02:00
virchrdev.c
virchrdev.h conf: misc: use #pragma once in headers 2019-06-13 17:05:09 +02:00
virconftypes.h conf: domain: use generic XML namespace types 2019-08-21 10:29:20 +02:00
virdomaincheckpointobjlist.c backup: Allow for lists of checkpoint objects 2019-07-26 16:48:58 -05:00
virdomaincheckpointobjlist.h backup: Allow for lists of checkpoint objects 2019-07-26 16:48:58 -05:00
virdomainmomentobjlist.c backup: Allow for lists of checkpoint objects 2019-07-26 16:48:58 -05:00
virdomainmomentobjlist.h backup: Allow for lists of checkpoint objects 2019-07-26 16:48:58 -05:00
virdomainobjlist.c lib: Grab write lock when modifying list of domains 2019-09-07 08:22:30 +02:00
virdomainobjlist.h lib: Grab write lock when modifying list of domains 2019-09-07 08:22:30 +02:00
virdomainsnapshotobjlist.c snapshot: Don't leak moment obj list metaroot to callers 2019-07-24 17:03:34 -05:00
virdomainsnapshotobjlist.h snapshot: Don't leak moment obj list metaroot to callers 2019-07-24 17:03:34 -05:00
virinterfaceobj.c
virinterfaceobj.h conf: misc: use #pragma once in headers 2019-06-13 17:05:09 +02:00
virnetworkobj.c network: fix connection usage counts after restart 2019-09-13 17:33:58 +01:00
virnetworkobj.h network: fix connection usage counts after restart 2019-09-13 17:33:58 +01:00
virnetworkportdef.c util: xml: Add wrapper for xmlXPathNewContext 2019-09-19 14:31:15 +02:00
virnetworkportdef.h conf: introduce virNetworkPortDefPtr struct and XML support 2019-06-17 15:19:54 +01:00
virnodedeviceobj.c
virnodedeviceobj.h nodedev: acquire a pidfile in the driver root directory 2019-07-11 12:46:20 +01:00
virnwfilterbindingdef.c util: xml: Add wrapper for xmlXPathNewContext 2019-09-19 14:31:15 +02:00
virnwfilterbindingdef.h conf: nwfilter: use #pragma once in headers 2019-06-13 17:05:09 +02:00
virnwfilterbindingobj.c util: xml: Add wrapper for xmlXPathNewContext 2019-09-19 14:31:15 +02:00
virnwfilterbindingobj.h conf: nwfilter: use #pragma once in headers 2019-06-13 17:05:09 +02:00
virnwfilterbindingobjlist.c virNWFilterBindingObjListAddLocked: Produce better error message than 'Duplicate key' 2019-04-04 09:16:24 +02:00
virnwfilterbindingobjlist.h conf: nwfilter: use #pragma once in headers 2019-06-13 17:05:09 +02:00
virnwfilterobj.c
virnwfilterobj.h nwfilter: acquire a pidfile in the driver root directory 2019-07-11 12:46:20 +01:00
virsavecookie.c
virsavecookie.h conf: misc: use #pragma once in headers 2019-06-13 17:05:09 +02:00
virsecretobj.c
virsecretobj.h conf: misc: use #pragma once in headers 2019-06-13 17:05:09 +02:00
virstorageobj.c storage_driver: Protect pool def during startup and build 2019-08-23 09:32:26 +02:00
virstorageobj.h storage_driver: Protect pool def during startup and build 2019-08-23 09:32:26 +02:00