cli: fix leaking error variable in command_done()

This commit is contained in:
Thomas Haller
2019-10-02 09:10:31 +02:00
parent 479c269766
commit c4c8889256

View File

@@ -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;