]> xenbits.xensource.com Git - libvirt.git/commitdiff
conf: Actually make virDomainChrSourceDef an object
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 12 Apr 2018 07:10:33 +0000 (09:10 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 12 Apr 2018 10:44:36 +0000 (12:44 +0200)
In 2ada9ef1465f we've tried to turn virDomainChrSourceDef into
virObject. Well, this requires 'virObject' member to be stored on
the first position of the struct. This adjustment is missing in
the original commit leading to all sorts of funny memleaks and
data corruptions.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com>
src/conf/domain_conf.h

index 89a7131fdbcfada2329a09e8dd9b7b6a80976ebf..bbaa24137d8551eb398d4745bccded2dc64a99af 100644 (file)
@@ -1180,6 +1180,7 @@ typedef virDomainChrSourceReconnectDef *virDomainChrSourceReconnectDefPtr;
 
 /* The host side information for a character device.  */
 struct _virDomainChrSourceDef {
+    virObject parent;
     int type; /* virDomainChrType */
     virObjectPtr privateData;
     union {