From: Michal Privoznik Date: Thu, 12 Apr 2018 07:10:33 +0000 (+0200) Subject: conf: Actually make virDomainChrSourceDef an object X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=f574e2e5214fb99f0c2dff4d71da099e66ba36fa;p=libvirt.git conf: Actually make virDomainChrSourceDef an object 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 Reviewed-by: Erik Skultety Reviewed-by: Marc Hartmayer --- diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index 89a7131fdb..bbaa24137d 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -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 {