[gnome-online-accounts/rhel-7.1: 4/34] kerberos: fix leak in add_temporary_account



commit 424adcdf7113adfa8bdca518313d448f52efd29b
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 1639868..83b40af 100644
--- a/src/goaidentity/goaidentityservice.c
+++ b/src/goaidentity/goaidentityservice.c
@@ -877,7 +877,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;
@@ -933,6 +933,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]