summaryrefslogtreecommitdiff
path: root/tools/vsh-table.c
diff options
context:
space:
mode:
authorLaine Stump <laine@redhat.com>2021-02-03 14:32:55 -0500
committerLaine Stump <laine@redhat.com>2021-02-05 00:20:45 -0500
commit6b1595317c27d0180e4220d0150d58485c1261f5 (patch)
tree2668912b417bfa41c2f9833344f8b16cd252d050 /tools/vsh-table.c
parenta9e72390e813e0997e58d76fabfb8fd135ef6f20 (diff)
downloadlibvirt-6b1595317c27d0180e4220d0150d58485c1261f5.tar.gz
tools: replace VIR_FREE with g_free in all vir*Free() functions
Signed-off-by: Laine Stump <laine@redhat.com> Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Diffstat (limited to 'tools/vsh-table.c')
-rw-r--r--tools/vsh-table.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/vsh-table.c b/tools/vsh-table.c
index 4471368687..d09cc9e14e 100644
--- a/tools/vsh-table.c
+++ b/tools/vsh-table.c
@@ -52,10 +52,10 @@ vshTableRowFree(vshTableRowPtr row)
return;
for (i = 0; i < row->ncells; i++)
- VIR_FREE(row->cells[i]);
+ g_free(row->cells[i]);
- VIR_FREE(row->cells);
- VIR_FREE(row);
+ g_free(row->cells);
+ g_free(row);
}
@@ -69,8 +69,8 @@ vshTableFree(vshTablePtr table)
for (i = 0; i < table->nrows; i++)
vshTableRowFree(table->rows[i]);
- VIR_FREE(table->rows);
- VIR_FREE(table);
+ g_free(table->rows);
+ g_free(table);
}