[gnome-online-accounts/gnome-3-12] kerberos: fix leak in add_temporary_account



commit e6c6ca74af4737e05c1b8e1c92a681df1f10fea6
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Mar 17 09:28:32 2014 -0400

    kerberos: fix leak in add_temporary_account
    
    The account description was not getting freed.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=726353

 src/goaidentity/goaidentityservice.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/goaidentity/goaidentityservice.c b/src/goaidentity/goaidentityservice.c
index cb48168..8f247d8 100644
--- a/src/goaidentity/goaidentityservice.c
+++ b/src/goaidentity/goaidentityservice.c
@@ -875,7 +875,7 @@ add_temporary_account (GoaIdentityService *self,
 {
   char               *realm;
   const char         *principal;
-  const char         *principal_for_display;
+  char               *principal_for_display;
   GSimpleAsyncResult *operation_result;
   GVariantBuilder     credentials;
   GVariantBuilder     details;
@@ -931,6 +931,7 @@ add_temporary_account (GoaIdentityService *self,
                                 on_account_added,
                                 operation_result);
   g_free (realm);
+  g_free (principal_for_display);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]