mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-21 08:40:06 +01:00
cli: fix leaking error variable in command_done()
This commit is contained in:
parent
479c269766
commit
c4c8889256
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue