[glib/mcatanzaro/coverity: 6/8] gdbusauth: fix error leak
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/mcatanzaro/coverity: 6/8] gdbusauth: fix error leak
- Date: Thu, 1 Apr 2021 19:28:21 +0000 (UTC)
commit 2b29495bcb59ba00bec808c509112dae6e019fd7
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Wed Mar 31 14:12:39 2021 -0500
gdbusauth: fix error leak
local_error is leaked in the G_IO_ERROR_NOT_SUPPORTED case. Found by
Coverity.
gio/gdbusauth.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gio/gdbusauth.c b/gio/gdbusauth.c
index c430f0cf0..534dca2d1 100644
--- a/gio/gdbusauth.c
+++ b/gio/gdbusauth.c
@@ -1007,6 +1007,7 @@ _g_dbus_auth_run_server (GDBusAuth *auth,
g_propagate_error (error, local_error);
goto out;
}
+ g_clear_error (&local_error);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]