diff options
author | Ján Tomko <jtomko@redhat.com> | 2019-10-15 15:16:31 +0200 |
---|---|---|
committer | Ján Tomko <jtomko@redhat.com> | 2019-10-16 12:06:43 +0200 |
commit | 1e2ae2e311c7453e7894e93688f8785736aa0618 (patch) | |
tree | 1b0711d8ce2f8052b8fc394d735693f5a4539477 /tests/storagepoolcapstest.c | |
parent | 2b2c67b401d10d9752fe9c390c88a1555ccbe947 (diff) | |
download | libvirt-1e2ae2e311c7453e7894e93688f8785736aa0618.tar.gz |
Use g_autofree instead of VIR_AUTOFREE
Since commit 44e7f029159ed701b4a1739ac711507ee53790ed
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>
Diffstat (limited to 'tests/storagepoolcapstest.c')
-rw-r--r-- | tests/storagepoolcapstest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/storagepoolcapstest.c b/tests/storagepoolcapstest.c index 518a5fdfe7..185372e939 100644 --- a/tests/storagepoolcapstest.c +++ b/tests/storagepoolcapstest.c @@ -55,8 +55,8 @@ test_virStoragePoolCapsFormat(const void *opaque) (struct test_virStoragePoolCapsFormatData *) opaque; virCapsPtr driverCaps = data->driverCaps; VIR_AUTOUNREF(virStoragePoolCapsPtr) poolCaps = NULL; - VIR_AUTOFREE(char *) path = NULL; - VIR_AUTOFREE(char *) poolCapsXML = NULL; + g_autofree char *path = NULL; + g_autofree char *poolCapsXML = NULL; if (!(poolCaps = virStoragePoolCapsNew(driverCaps))) |