[libvirt PATCH 01/10] vsh: table: define cleanup function

Ján Tomko jtomko at redhat.com
Tue Aug 10 17:45:00 UTC 2021


Signed-off-by: Ján Tomko <jtomko at redhat.com>
---
 tools/vsh-table.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/vsh-table.h b/tools/vsh-table.h
index a8cfca62d5..5ce416cfa1 100644
--- a/tools/vsh-table.h
+++ b/tools/vsh-table.h
@@ -30,3 +30,4 @@ vshTable *vshTableNew(const char *format, ...);
 int vshTableRowAppend(vshTable *table, const char *arg, ...);
 void vshTablePrintToStdout(vshTable *table, vshControl *ctl);
 char *vshTablePrintToString(vshTable *table, bool header);
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(vshTable, vshTableFree);
-- 
2.31.1




More information about the libvir-list mailing list