summaryrefslogtreecommitdiff
path: root/tests/src/x-authority.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/x-authority.c')
-rw-r--r--tests/src/x-authority.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/src/x-authority.c b/tests/src/x-authority.c
index e63a051f..f1b882e3 100644
--- a/tests/src/x-authority.c
+++ b/tests/src/x-authority.c
@@ -33,7 +33,7 @@ x_authority_load (XAuthority *authority, const gchar *filename, GError **error)
{
XAuthorityPrivate *priv = x_authority_get_instance_private (authority);
- guint8 *xauth_data;
+ g_autofree guint8 *xauth_data;
gsize xauth_length;
if (!g_file_get_contents (filename, (gchar **) &xauth_data, &xauth_length, error))
return FALSE;