diff options
author | Myungki Lee <mk5004.lee@samsung.com> | 2017-02-14 15:40:42 +0900 |
---|---|---|
committer | Myungki Lee <mk5004.lee@samsung.com> | 2017-02-21 16:08:02 +0900 |
commit | ad7c39d7d51ddf5a767015fa6c0dcbfaf24e6990 (patch) | |
tree | 36dc0edf6650b52b1a6c19ec5e49e25fb0f587d6 | |
parent | 681bbfaf8205b444a4d0c5e0b3b092d53151fb1d (diff) | |
download | notification-ad7c39d7d51ddf5a767015fa6c0dcbfaf24e6990.tar.gz notification-ad7c39d7d51ddf5a767015fa6c0dcbfaf24e6990.tar.bz2 notification-ad7c39d7d51ddf5a767015fa6c0dcbfaf24e6990.zip |
Fix memory leaksubmit/tizen_3.0/20170221.090900accepted/tizen/3.0/wearable/20170222.082744accepted/tizen/3.0/tv/20170222.082740accepted/tizen/3.0/mobile/20170222.082721accepted/tizen/3.0/ivi/20170222.082747accepted/tizen/3.0/common/20170222.125837
Change-Id: Ie31faeff68a199f960afb14cc7bb91d76b464d19
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
-rwxr-xr-x | src/notification_ipc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/notification_ipc.c b/src/notification_ipc.c index fdecf6f..26f2db6 100755 --- a/src/notification_ipc.c +++ b/src/notification_ipc.c @@ -562,10 +562,12 @@ static void _send_event(GVariant *parameters) g_variant_unref(body); if (ret != NOTIFICATION_ERROR_NONE) { NOTIFICATION_ERR("failed to make notification handle from gvariant"); + notification_free(noti); return; } notification_call_event_handler_cb(noti, event_type); + notification_free(noti); } static void _delete_event(GVariant *parameters) @@ -1396,6 +1398,7 @@ int notification_ipc_request_load_system_setting(notification_system_setting_h * if (dnd_allow_exception == NULL) { g_object_unref(reply); g_variant_iter_free(iter); + free(result_setting); return NOTIFICATION_ERROR_OUT_OF_MEMORY; } |