[epiphany] sync-service: Fix leak in _init
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] sync-service: Fix leak in _init
- Date: Mon, 21 Nov 2016 21:09:56 +0000 (UTC)
commit ae04d88ad5fc66e4868dedcba971d24d914ce338
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Mon Nov 21 14:12:20 2016 -0600
sync-service: Fix leak in _init
Direct leak of 25 byte(s) in 1 object(s) allocated from:
#0 0x7fd43d6ade60 in malloc (/lib64/libasan.so.3+0xc6e60)
#1 0x7fd4291b88f6 in g_malloc
/home/mcatanzaro/src/jhbuild/checkout/glib/glib/gmem.c:94
#2 0x7fd4291b8bb3 in g_malloc_n
/home/mcatanzaro/src/jhbuild/checkout/glib/glib/gmem.c:331
#3 0x7fd4291d54d8 in g_strdup
/home/mcatanzaro/src/jhbuild/checkout/glib/glib/gstrfuncs.c:363
#4 0x7fd4291f3946 in g_variant_dup_string
/home/mcatanzaro/src/jhbuild/checkout/glib/glib/gvariant.c:1529
#5 0x7fd42cbaabea in g_settings_get_string
/home/mcatanzaro/src/jhbuild/checkout/glib/gio/gsettings.c:1791
#6 0x7fd43d0a0a35 in ephy_sync_service_init
/home/mcatanzaro/src/jhbuild/checkout/epiphany/src/sync/ephy-sync-service.c:621
#7 0x7fd42c82cc55 in g_type_create_instance
/home/mcatanzaro/src/jhbuild/checkout/glib/gobject/gtype.c:1866
#8 0x7fd42c8132aa in g_object_new_internal
/home/mcatanzaro/src/jhbuild/checkout/glib/gobject/gobject.c:1783
#9 0x7fd42c8137b9 in g_object_newv
/home/mcatanzaro/src/jhbuild/checkout/glib/gobject/gobject.c:1930
#10 0x7fd42c812e5b in g_object_new
/home/mcatanzaro/src/jhbuild/checkout/glib/gobject/gobject.c:1623
#11 0x7fd43d0a0a8d in ephy_sync_service_new
/home/mcatanzaro/src/jhbuild/checkout/epiphany/src/sync/ephy-sync-service.c:632
#12 0x7fd43d08086c in ephy_shell_startup
/home/mcatanzaro/src/jhbuild/checkout/epiphany/src/ephy-shell.c:325
#13 0x7fd42c80d9de in g_cclosure_marshal_VOID__VOID
/home/mcatanzaro/src/jhbuild/checkout/glib/gobject/gmarshal.c:875
#14 0x7fd42c80b01b in g_type_class_meta_marshal
/home/mcatanzaro/src/jhbuild/checkout/glib/gobject/gclosure.c:997
#15 0x7fd42c80a9c7 in g_closure_invoke
/home/mcatanzaro/src/jhbuild/checkout/glib/gobject/gclosure.c:804
#16 0x7fd42c827b7e in signal_emit_unlocked_R
/home/mcatanzaro/src/jhbuild/checkout/glib/gobject/gsignal.c:3565
#17 0x7fd42c8271b6 in g_signal_emit_valist
/home/mcatanzaro/src/jhbuild/checkout/glib/gobject/gsignal.c:3391
#18 0x7fd42c8276f8 in g_signal_emit
/home/mcatanzaro/src/jhbuild/checkout/glib/gobject/gsignal.c:3447
#19 0x7fd42cb17b91 in g_application_register
/home/mcatanzaro/src/jhbuild/checkout/glib/gio/gapplication.c:2049
#20 0x7fd42cb15db0 in g_application_real_local_command_line
/home/mcatanzaro/src/jhbuild/checkout/glib/gio/gapplication.c:1012
#21 0x7fd42e38b67c in gtk_application_local_command_line
/home/mcatanzaro/src/jhbuild/checkout/gtk+-3/gtk/gtkapplication.c:332
#22 0x7fd42cb182af in g_application_run
/home/mcatanzaro/src/jhbuild/checkout/glib/gio/gapplication.c:2350
#23 0x4032ab in main
/home/mcatanzaro/src/jhbuild/checkout/epiphany/src/ephy-main.c:432
#24 0x7fd428dba730 in __libc_start_main (/lib64/libc.so.6+0x20730)
src/sync/ephy-sync-service.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/sync/ephy-sync-service.c b/src/sync/ephy-sync-service.c
index 6b018a0..f4ec8d8 100644
--- a/src/sync/ephy-sync-service.c
+++ b/src/sync/ephy-sync-service.c
@@ -624,6 +624,8 @@ ephy_sync_service_init (EphySyncService *self)
ephy_sync_service_set_user_email (self, email);
ephy_sync_secret_load_tokens (self);
}
+
+ g_free (email);
}
EphySyncService *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]