summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/mmtty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/mmtty.c b/test/mmtty.c
index 6b918b43a..26ddb0b72 100644
--- a/test/mmtty.c
+++ b/test/mmtty.c
@@ -110,8 +110,8 @@ static void
at_command_ready (MMPortSerialAt *serial_at,
GAsyncResult *res)
{
- const gchar *response;
- GError *error = NULL;
+ g_autofree gchar *response = NULL;
+ GError *error = NULL;
response = mm_port_serial_at_command_finish (serial_at, res, &error);
if (response)