projects
/
platform
/
core
/
appfw
/
alarm-manager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ce3494
)
Fix memory leak
26/136226/1
author
Hwankyu Jhun
<h.jhun@samsung.com>
Wed, 28 Jun 2017 22:31:12 +0000
(07:31 +0900)
committer
Hwankyu Jhun
<h.jhun@samsung.com>
Wed, 28 Jun 2017 22:31:12 +0000
(07:31 +0900)
Change-Id: Id28528b68925f251ec53c65bc1cbb88103bce6f8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
alarm-session-agent/agent.c
patch
|
blob
|
history
diff --git
a/alarm-session-agent/agent.c
b/alarm-session-agent/agent.c
index
8d44f02
..
d9620e7
100644
(file)
--- a/
alarm-session-agent/agent.c
+++ b/
alarm-session-agent/agent.c
@@
-132,6
+132,7
@@
static void _send_noti(char *service_name, int alarm_id, int msec)
conn = g_bus_get_sync(G_BUS_TYPE_SESSION, NULL, &err);
if (!conn) {
LOGE("connection error %s", err->message);
+ g_clear_error(&err);
exit(-1);
}
@@
-145,8
+146,9
@@
static void _send_noti(char *service_name, int alarm_id, int msec)
G_DBUS_CALL_FLAGS_NONE,
-1,
NULL,
-
NULL
);
+
&err
);
+ g_clear_error(&err);
g_object_unref(conn);
}