[libvirt PATCH 08/10] conf: node_device: Register autoptr cleanup function for virNodeDevCapsDef

Tim Wiederhake posted 10 patches 4 years, 9 months ago
[libvirt PATCH 08/10] conf: node_device: Register autoptr cleanup function for virNodeDevCapsDef
Posted by Tim Wiederhake 4 years, 9 months ago
Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
---
 src/conf/node_device_conf.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/conf/node_device_conf.h b/src/conf/node_device_conf.h
index 85790ad96c..a60562e4fe 100644
--- a/src/conf/node_device_conf.h
+++ b/src/conf/node_device_conf.h
@@ -377,6 +377,8 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(virNodeDeviceDef, virNodeDeviceDefFree);
 void
 virNodeDevCapsDefFree(virNodeDevCapsDef *caps);
 
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(virNodeDevCapsDef, virNodeDevCapsDefFree);
+
 #define VIR_CONNECT_LIST_NODE_DEVICES_FILTERS_CAP \
                 (VIR_CONNECT_LIST_NODE_DEVICES_CAP_SYSTEM        | \
                  VIR_CONNECT_LIST_NODE_DEVICES_CAP_PCI_DEV       | \
-- 
2.26.3