From: dh79pyun Date: Tue, 18 Jan 2022 00:04:36 +0000 (+0900) Subject: Fix the coverity issue (Memory leak) X-Git-Tag: accepted/tizen/7.0/unified/20221110.062916^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F21%2F269521%2F1;p=platform%2Fcore%2Ftelephony%2Fcall-manager.git Fix the coverity issue (Memory leak) Change-Id: Id8bfbd6c6fe170b0b69ee0b194b1344a25ab3fab Signed-off-by: dh79pyun --- diff --git a/common/src/callmgr-util.c b/common/src/callmgr-util.c index 11d08ae..03d7aee 100644 --- a/common/src/callmgr-util.c +++ b/common/src/callmgr-util.c @@ -921,6 +921,7 @@ int _callmgr_util_check_disturbing_setting(const char *number, gboolean *is_do_n ret = notification_system_setting_get_do_not_disturb(system_setting, &do_not_disturb); if (ret != NOTIFICATION_ERROR_NONE) { err("notification_system_setting_get_do_not_disturb() failed [%d][%s]", ret, get_error_message(ret)); + notification_system_setting_free_system_setting(system_setting); return 0; }