render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
fbe740
From 865a4770a5145a0df11a42bb0efc7e72e862a236 Mon Sep 17 00:00:00 2001
fbe740
Message-Id: <865a4770a5145a0df11a42bb0efc7e72e862a236@dist-git>
fbe740
From: Peter Krempa <pkrempa@redhat.com>
fbe740
Date: Mon, 16 Mar 2020 22:11:44 +0100
fbe740
Subject: [PATCH] qemuDomainSecretInfo: Register autoptr cleanup function
fbe740
MIME-Version: 1.0
fbe740
Content-Type: text/plain; charset=UTF-8
fbe740
Content-Transfer-Encoding: 8bit
fbe740
fbe740
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
fbe740
Reviewed-by: Ján Tomko <jtomko@redhat.com>
fbe740
(cherry picked from commit b544481a91e6f3ee0e7534e0fc3d2cfb3bb60dba)
fbe740
fbe740
https://bugzilla.redhat.com/show_bug.cgi?id=1804750
fbe740
Message-Id: <f8b983d058091e9cd0631589334d72a1ecc1ec7d.1584391726.git.pkrempa@redhat.com>
fbe740
Reviewed-by: Ján Tomko <jtomko@redhat.com>
fbe740
---
fbe740
 src/qemu/qemu_domain.h | 2 ++
fbe740
 1 file changed, 2 insertions(+)
fbe740
fbe740
diff --git a/src/qemu/qemu_domain.h b/src/qemu/qemu_domain.h
fbe740
index 89a967efd7..bd9ac85ae2 100644
fbe740
--- a/src/qemu/qemu_domain.h
fbe740
+++ b/src/qemu/qemu_domain.h
fbe740
@@ -1035,6 +1035,8 @@ bool qemuDomainSupportsEncryptedSecret(qemuDomainObjPrivatePtr priv);
fbe740
 void qemuDomainSecretInfoFree(qemuDomainSecretInfoPtr secinfo)
fbe740
     ATTRIBUTE_NONNULL(1);
fbe740
 
fbe740
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(qemuDomainSecretInfo, qemuDomainSecretInfoFree);
fbe740
+
fbe740
 void qemuDomainSecretInfoDestroy(qemuDomainSecretInfoPtr secinfo);
fbe740
 
fbe740
 void qemuDomainSecretDiskDestroy(virDomainDiskDefPtr disk)
fbe740
-- 
fbe740
2.25.1
fbe740