[gnome-online-accounts] kerberos: fix leak in add_temporary_account
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts] kerberos: fix leak in add_temporary_account
- Date: Mon, 17 Mar 2014 14:05:15 +0000 (UTC)
commit c4c47a89e3c0490405a56697a73cd375b5ce01e8
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]