[gnome-online-accounts/gnome-3-22] kerberos: Don't leak the result
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/gnome-3-22] kerberos: Don't leak the result
- Date: Fri, 10 Mar 2017 17:29:02 +0000 (UTC)
commit 3e45d21de12e23bcc0c1cfff731b2d1d2a5c408d
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Mar 9 23:41:32 2017 +0100
kerberos: Don't leak the result
Spotted by Matthias Clasen.
https://bugzilla.gnome.org/show_bug.cgi?id=779548
src/goabackend/goakerberosprovider.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/goabackend/goakerberosprovider.c b/src/goabackend/goakerberosprovider.c
index ee025fa..ff0d41b 100644
--- a/src/goabackend/goakerberosprovider.c
+++ b/src/goabackend/goakerberosprovider.c
@@ -1319,7 +1319,7 @@ static gboolean
dbus_proxy_reload_properties_sync (GDBusProxy *proxy,
GCancellable *cancellable)
{
- GVariant *result;
+ GVariant *result = NULL;
char *name;
char *name_owner = NULL;
GVariant *value;
@@ -1354,6 +1354,7 @@ dbus_proxy_reload_properties_sync (GDBusProxy *proxy,
out:
g_clear_pointer (&iter, (GDestroyNotify) g_variant_iter_free);
+ g_clear_pointer (&result, (GDestroyNotify) g_variant_unref);
g_free (name_owner);
return ret;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]