From f574e2e5214fb99f0c2dff4d71da099e66ba36fa Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Thu, 12 Apr 2018 09:10:33 +0200 Subject: [PATCH] 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 --- src/conf/domain_conf.h | 1 + 1 file changed, 1 insertion(+) 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 { -- 2.47.2