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:
199a446
)
Fix memory leak issue
55/114055/1
accepted/tizen/3.0/common/20170213.160625
accepted/tizen/3.0/ivi/20170213.035129
accepted/tizen/3.0/mobile/20170213.034938
accepted/tizen/3.0/tv/20170213.035029
accepted/tizen/3.0/wearable/20170213.035101
submit/tizen_3.0/20170210.073214
author
Jiwoong Im
<jiwoong.im@samsung.com>
Wed, 8 Feb 2017 06:44:03 +0000
(15:44 +0900)
committer
Jiwoong Im
<jiwoong.im@samsung.com>
Fri, 10 Feb 2017 00:50:56 +0000
(16:50 -0800)
Change-Id: I68a40715a6453d1ecc0d6bc81583c958497a5bcb
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
(cherry picked from commit
359a7e1b4392305118fc1c56c363c5a143590b1f
)
src/alarm-lib-stub.c
patch
|
blob
|
history
diff --git
a/src/alarm-lib-stub.c
b/src/alarm-lib-stub.c
index
e56e220
..
0b983db
100644
(file)
--- a/
src/alarm-lib-stub.c
+++ b/
src/alarm-lib-stub.c
@@
-91,10
+91,12
@@
bool _send_alarm_create_noti(alarm_context_t context, alarm_info_t *alarm_info,
(char *)noti_data,
alarm_id, &return_code,
NULL, &error);
- if (noti_data) {
+
+ if (noti_data)
free(noti_data);
- noti_data = NULL;
- }
+ if (data)
+ free(data);
+ g_variant_unref(noti_gv);
if (ret != TRUE) {
/* g_dbus_proxy_call_sync error */
@@
-372,6
+374,9
@@
notification_h _send_alarm_get_noti_info(alarm_context_t context, alarm_id_t ala
noti = notification_create(NOTIFICATION_TYPE_NOTI);
notification_ipc_make_noti_from_gvariant(noti, body);
+
+ g_free(data);
+ g_variant_unref(noti_gv);
}
if (noti_data)