[gnome-online-accounts/gnome-3-18] 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-18] kerberos: Don't leak the object path from sign_in_identity
- Date: Mon, 18 Jul 2016 16:11:36 +0000 (UTC)
commit 685f28ad3943ed74d3ccaf78ccdb15d27674b2c2
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 f685e96..c813a6f 100644
--- a/src/goabackend/goakerberosprovider.c
+++ b/src/goabackend/goakerberosprovider.c
@@ -841,7 +841,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));
@@ -869,6 +869,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]