From d8e1d3966383fa141a4b000effd36ba3e361935c Mon Sep 17 00:00:00 2001 From: Jiri Denemark Date: Thu, 26 Sep 2019 18:41:42 +0200 Subject: [PATCH] conf: Define g_autoptr cleanup function for virCPUDef MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jiri Denemark Reviewed-by: Ján Tomko --- src/conf/cpu_conf.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/conf/cpu_conf.h b/src/conf/cpu_conf.h index a9f8abeef1..e41d47d1ae 100644 --- a/src/conf/cpu_conf.h +++ b/src/conf/cpu_conf.h @@ -151,6 +151,7 @@ virCPUDefFreeModel(virCPUDefPtr def); void virCPUDefFree(virCPUDefPtr def); +G_DEFINE_AUTOPTR_CLEANUP_FUNC(virCPUDef, virCPUDefFree); int ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) virCPUDefCopyModel(virCPUDefPtr dst,