Use g_autofree instead of VIR_AUTOFREE

Since commit 44e7f02915
    util: rewrite auto cleanup macros to use glib's equivalent

VIR_AUTOFREE is just an alias for g_autofree. Use the GLib macros
directly instead of our custom aliases.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Ján Tomko
2019-10-15 15:16:31 +02:00
parent 2b2c67b401
commit 1e2ae2e311
144 changed files with 1473 additions and 1473 deletions

View File

@@ -17,12 +17,12 @@ static int
testParseFormatVU(const void *opaque)
{
const char *filename = opaque;
VIR_AUTOFREE(char *) path = NULL;
g_autofree char *path = NULL;
VIR_AUTOPTR(qemuVhostUser) vu = NULL;
VIR_AUTOFREE(char *) buf = NULL;
g_autofree char *buf = NULL;
VIR_AUTOPTR(virJSONValue) json = NULL;
VIR_AUTOFREE(char *) expected = NULL;
VIR_AUTOFREE(char *) actual = NULL;
g_autofree char *expected = NULL;
g_autofree char *actual = NULL;
if (virAsprintf(&path, "%s/qemuvhostuserdata/%s",
abs_srcdir, filename) < 0)
@@ -57,7 +57,7 @@ testParseFormatVU(const void *opaque)
static int
testVUPrecedence(const void *opaque G_GNUC_UNUSED)
{
VIR_AUTOFREE(char *) fakehome = NULL;
g_autofree char *fakehome = NULL;
VIR_AUTOSTRINGLIST vuList = NULL;
size_t nvuList;
size_t i;