From 0489a3a73ecfc7646043d5e6f157c5231c69292b Mon Sep 17 00:00:00 2001 From: dh79pyun Date: Tue, 18 Jan 2022 09:04:36 +0900 Subject: [PATCH] Fix the coverity issue (Memory leak) Change-Id: Id8bfbd6c6fe170b0b69ee0b194b1344a25ab3fab Signed-off-by: dh79pyun --- common/src/callmgr-util.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.7.4