[glib: 2/3] Correct memory leaks of error in completion case.
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 2/3] Correct memory leaks of error in completion case.
- Date: Thu, 28 Jan 2021 17:02:16 +0000 (UTC)
commit 1c7c849d34ee89a030fe0d85e326311741a0f3d1
Author: Frederic Martinsons <frederic martinsons sigfox com>
Date: Tue Jan 26 15:43:46 2021 +0100
Correct memory leaks of error in completion case.
Signed-off-by: Frederic Martinsons <frederic martinsons sigfox com>
gio/gdbus-tool.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gio/gdbus-tool.c b/gio/gdbus-tool.c
index 5cb80b45f..06f61cfac 100644
--- a/gio/gdbus-tool.c
+++ b/gio/gdbus-tool.c
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]