diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2015-05-04 17:58:26 -0400 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2015-05-06 21:50:17 -0400 |
commit | 7a62d64968160d27cbd90aeeed754eb185135f91 (patch) | |
tree | b6bc24af82d7ac03f42ec58f15507caa8cca869f /tests/test-varint.c | |
parent | 4f33515316a374867e093171f219cbd6e5e4f5bd (diff) | |
download | ostree-7a62d64968160d27cbd90aeeed754eb185135f91.tar.gz |
Use g_autofree instead of gs_free
Diffstat (limited to 'tests/test-varint.c')
-rw-r--r-- | tests/test-varint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-varint.c b/tests/test-varint.c index e069fc57..c62b397d 100644 --- a/tests/test-varint.c +++ b/tests/test-varint.c @@ -36,7 +36,7 @@ check_one_roundtrip (guint64 val) if (g_test_verbose ()) { gs_unref_variant GVariant *v = g_variant_new_from_data (G_VARIANT_TYPE ("ay"), buf->str, buf->len, TRUE, NULL, NULL); - gs_free char *data = g_variant_print (v, FALSE); + g_autofree char *data = g_variant_print (v, FALSE); g_test_message ("%" G_GUINT64_FORMAT " -> %s", val, data); } g_assert (_ostree_read_varuint64 ((guint8*)buf->str, buf->len, &newval, &bytes_read)); |