[gnome-online-accounts] kerberos: fix leak in reset_alarms
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts] kerberos: fix leak in reset_alarms
- Date: Mon, 17 Mar 2014 14:05:25 +0000 (UTC)
commit cc2c0ac16e4d94b9acbd05c2ca446402b9810ba1
Author: Michael Cronenworth <mike cchtml com>
Date: Mon Mar 17 09:33:59 2014 -0400
kerberos: fix leak in reset_alarms
A GDateTime "now" object wasn't getting cleaned up after use.
https://bugzilla.gnome.org/show_bug.cgi?id=726353
src/goaidentity/goakerberosidentity.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/goaidentity/goakerberosidentity.c b/src/goaidentity/goakerberosidentity.c
index 74ee17b..0bfa430 100644
--- a/src/goaidentity/goakerberosidentity.c
+++ b/src/goaidentity/goakerberosidentity.c
@@ -856,6 +856,7 @@ reset_alarms (GoaKerberosIdentity *self)
now = g_date_time_new_now_local ();
expiration_time = g_date_time_new_from_unix_local (self->priv->expiration_time);
time_span_until_expiration = g_date_time_difference (expiration_time, now);
+ g_date_time_unref (now);
/* Let the user reauthenticate 10 min before expiration */
expiring_time = g_date_time_add_minutes (expiration_time, -10);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]