Blob Blame History Raw
From 865a4770a5145a0df11a42bb0efc7e72e862a236 Mon Sep 17 00:00:00 2001
Message-Id: <865a4770a5145a0df11a42bb0efc7e72e862a236@dist-git>
From: Peter Krempa <pkrempa@redhat.com>
Date: Mon, 16 Mar 2020 22:11:44 +0100
Subject: [PATCH] qemuDomainSecretInfo: Register autoptr cleanup function
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
(cherry picked from commit b544481a91e6f3ee0e7534e0fc3d2cfb3bb60dba)

https://bugzilla.redhat.com/show_bug.cgi?id=1804750
Message-Id: <f8b983d058091e9cd0631589334d72a1ecc1ec7d.1584391726.git.pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
---
 src/qemu/qemu_domain.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/qemu/qemu_domain.h b/src/qemu/qemu_domain.h
index 89a967efd7..bd9ac85ae2 100644
--- a/src/qemu/qemu_domain.h
+++ b/src/qemu/qemu_domain.h
@@ -1035,6 +1035,8 @@ bool qemuDomainSupportsEncryptedSecret(qemuDomainObjPrivatePtr priv);
 void qemuDomainSecretInfoFree(qemuDomainSecretInfoPtr secinfo)
     ATTRIBUTE_NONNULL(1);
 
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(qemuDomainSecretInfo, qemuDomainSecretInfoFree);
+
 void qemuDomainSecretInfoDestroy(qemuDomainSecretInfoPtr secinfo);
 
 void qemuDomainSecretDiskDestroy(virDomainDiskDefPtr disk)
-- 
2.25.1