[glib: 2/19] gdbusauthmechanismsha1: Fix pointer being freed after being NULLed




commit 84affed056ac8fbf19b132f0c85549060b37829b
Author: Egor Bychin <e bychin drweb com>
Date:   Mon Oct 11 13:54:07 2021 +0300

    gdbusauthmechanismsha1: Fix pointer being freed after being NULLed

 gio/gdbusauthmechanismsha1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/gdbusauthmechanismsha1.c b/gio/gdbusauthmechanismsha1.c
index 095a6663e..94fe0bce8 100644
--- a/gio/gdbusauthmechanismsha1.c
+++ b/gio/gdbusauthmechanismsha1.c
@@ -881,8 +881,8 @@ keyring_generate_entry (const gchar  *cookie_context,
                                      error))
         {
           *out_id = 0;
-          *out_cookie = 0;
           g_free (*out_cookie);
+          *out_cookie = 0;
           ret = FALSE;
           goto out;
         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]