[glib/mcatanzaro/coverity: 6/8] gdbusauth: fix error leak




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]