[gnome-online-accounts/gnome-3-10] kerberos: fix leak in add_temporary_account
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/gnome-3-10] kerberos: fix leak in add_temporary_account
- Date: Mon, 17 Mar 2014 15:05:57 +0000 (UTC)
commit 22e53b2d3f7da2ce61c267685bc100a1fc205e76
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 1c430e4..93c0512 100644
--- a/src/goaidentity/goaidentityservice.c
+++ b/src/goaidentity/goaidentityservice.c
@@ -878,7 +878,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;
@@ -934,6 +934,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]