Fix the coverity issue (Memory leak) 21/269521/1 accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified tizen_7.0 tizen_7.0_hotfix tizen_8.0 accepted/tizen/7.0/unified/20221110.062916 accepted/tizen/7.0/unified/hotfix/20221116.105836 accepted/tizen/8.0/unified/20231005.093911 accepted/tizen/unified/20220127.133253 submit/tizen/20220126.054758 tizen_7.0_m2_release tizen_8.0_m2_release
authordh79pyun <dh79.pyun@samsung.com>
Tue, 18 Jan 2022 00:04:36 +0000 (09:04 +0900)
committerdh79pyun <dh79.pyun@samsung.com>
Tue, 18 Jan 2022 00:05:15 +0000 (09:05 +0900)
Change-Id: Id8bfbd6c6fe170b0b69ee0b194b1344a25ab3fab
Signed-off-by: dh79pyun <dh79.pyun@samsung.com>
common/src/callmgr-util.c

index 11d08ae..03d7aee 100644 (file)
@@ -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;
        }