Correct memory leaks of error in completion case.

Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com>
This commit is contained in:
Frederic Martinsons 2021-01-26 15:43:46 +01:00 committed by Philip Withnall
parent 43c2d747a3
commit 1c7c849d34

View File

@ -681,8 +681,8 @@ handle_emit (gint *argc,
else
{
g_printerr (_("Error connecting: %s\n"), error->message);
g_error_free (error);
}
g_error_free (error);
goto out;
}
@ -995,8 +995,8 @@ handle_call (gint *argc,
else
{
g_printerr (_("Error connecting: %s\n"), error->message);
g_error_free (error);
}
g_error_free (error);
goto out;
}
@ -1825,8 +1825,8 @@ handle_introspect (gint *argc,
else
{
g_printerr (_("Error connecting: %s\n"), error->message);
g_error_free (error);
}
g_error_free (error);
goto out;
}
@ -2057,8 +2057,8 @@ handle_monitor (gint *argc,
else
{
g_printerr (_("Error connecting: %s\n"), error->message);
g_error_free (error);
}
g_error_free (error);
goto out;
}
@ -2277,8 +2277,8 @@ handle_wait (gint *argc,
else
{
g_printerr (_("Error connecting: %s\n"), error->message);
g_error_free (error);
}
g_error_free (error);
goto out;
}