[gnome-online-accounts/gnome-3-20] kerberos: Don't leak the object path from sign_in_identity
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/gnome-3-20] kerberos: Don't leak the object path from sign_in_identity
- Date: Fri, 15 Jul 2016 15:05:09 +0000 (UTC)
commit 892179c0b2cf93afd9054c9ddfce36118509b2f1
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Jul 15 16:20:05 2016 +0200
kerberos: Don't leak the object path from sign_in_identity
https://bugzilla.gnome.org/show_bug.cgi?id=768845
src/goabackend/goakerberosprovider.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/goabackend/goakerberosprovider.c b/src/goabackend/goakerberosprovider.c
index 7c7698a..8c1fc2e 100644
--- a/src/goabackend/goakerberosprovider.c
+++ b/src/goabackend/goakerberosprovider.c
@@ -842,7 +842,7 @@ on_initial_sign_in_done (GoaKerberosProvider *self,
else if (remember_password)
{
GVariantBuilder builder;
- const char *object_path;
+ char *object_path;
object_path = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (result));
@@ -870,6 +870,8 @@ on_initial_sign_in_done (GoaKerberosProvider *self,
NULL,
NULL);
}
+
+ g_free (object_path);
}
g_simple_async_result_complete_in_idle (operation_result);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]