summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-10-02 09:10:31 +0200
committerThomas Haller <thaller@redhat.com>2019-10-02 09:11:28 +0200
commitc4c8889256fcf855b53d6f95d88535ec2dd738e5 (patch)
tree532177a74a602a9dba0852f5b2e6edd49ec06362
parent479c2697667bae84fc80afc70f4d12f194e85fd1 (diff)
downloadNetworkManager-c4c8889256fcf855b53d6f95d88535ec2dd738e5.tar.gz
cli: fix leaking error variable in command_done()
-rw-r--r--clients/cli/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clients/cli/common.c b/clients/cli/common.c
index 5a60b9a08b..325f73abf5 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;