From c4c8889256fcf855b53d6f95d88535ec2dd738e5 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 2 Oct 2019 09:10:31 +0200 Subject: [PATCH] cli: fix leaking error variable in command_done() --- clients/cli/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/cli/common.c b/clients/cli/common.c index 5a60b9a08..325f73abf 100644 --- a/clients/cli/common.c +++ b/clients/cli/common.c @@ -1187,7 +1187,7 @@ command_done (GObject *object, GAsyncResult *res, gpointer user_data) { GTask *task = G_TASK (res); NmCli *nmc = user_data; - GError *error = NULL; + gs_free_error GError *error = NULL; if (!g_task_propagate_boolean (task, &error)) { nmc->return_value = error->code;