[glib/glib-2-70: 1/18] gdbusauthmechanismsha1: Fix pointer being freed after being NULLed




commit 5796babc5cd2ea315d3b3771310ee4734c89dda6
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]