[gnome-online-accounts/gnome-3-10] kerberos: fix leak in reset_alarms



commit abc66c5ce89a920a0705a3ebc53fdeb1c005c104
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 15903d5..d2e8c62 100644
--- a/src/goaidentity/goakerberosidentity.c
+++ b/src/goaidentity/goakerberosidentity.c
@@ -859,6 +859,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]