summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorInkyun Kil <inkyun.kil@samsung.com>2018-03-13 08:39:11 +0900
committerInkyun Kil <inkyun.kil@samsung.com>2018-03-13 08:44:20 +0900
commit7d58423e56cb278e782e4c89623594b4e381250e (patch)
treeb6f5673eeef1b5363da7b33b3667af392d5c6d45 /src
parent31cc4f3dc1f6ea1ff241cb42ed055ba6b5312cc6 (diff)
downloadlibrua-7d58423e56cb278e782e4c89623594b4e381250e.tar.gz
librua-7d58423e56cb278e782e4c89623594b4e381250e.tar.bz2
librua-7d58423e56cb278e782e4c89623594b4e381250e.zip
Fix resource leaks
Change-Id: I4ecd05b8d5c710d2f53c042d00d70b5e33569030 Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
Diffstat (limited to 'src')
-rw-r--r--src/rua_dbus.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rua_dbus.c b/src/rua_dbus.c
index 0becc29..021a6ba 100644
--- a/src/rua_dbus.c
+++ b/src/rua_dbus.c
@@ -67,6 +67,7 @@ int rua_dbus_send_update_signal(update_type type)
&err) == FALSE) {
LOGE("g_dbus_connection_emit_signal() is failed. %s",
err->message);
+ g_clear_error(&err);
__rua_dbus_exit();
return -1;
}
@@ -74,6 +75,7 @@ int rua_dbus_send_update_signal(update_type type)
if (g_dbus_connection_flush_sync(conn, NULL, &err) == FALSE) {
LOGE("g_dbus_connection_flush_sync() is failed. %s",
err->message);
+ g_clear_error(&err);
__rua_dbus_exit();
return -1;
}