mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-21 12:10:09 +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);
|
GTask *task = G_TASK (res);
|
||||||
NmCli *nmc = user_data;
|
NmCli *nmc = user_data;
|
||||||
GError *error = NULL;
|
gs_free_error GError *error = NULL;
|
||||||
|
|
||||||
if (!g_task_propagate_boolean (task, &error)) {
|
if (!g_task_propagate_boolean (task, &error)) {
|
||||||
nmc->return_value = error->code;
|
nmc->return_value = error->code;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue