From: Abhimanyu Swami Date: Thu, 20 May 2021 10:04:34 +0000 (+0530) Subject: Return type check for phn_record_destroy() X-Git-Tag: submit/tizen/20210610.051649~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F79%2F258579%2F1;p=platform%2Fcore%2Ftelephony%2Fphonenumber-utils.git Return type check for phn_record_destroy() Change-Id: If28a9c95c15cdfc5b23818d68e419e0843d5076b Signed-off-by: Abhimanyu Swami --- diff --git a/common/phn-record.c b/common/phn-record.c index c7d7e6c..0e96ce6 100644 --- a/common/phn-record.c +++ b/common/phn-record.c @@ -134,7 +134,9 @@ void phn_record_free(gpointer data) { phone_number_blocking_rule_h record = data; - phn_record_destroy(record); + if (phn_record_destroy(record) != PHONE_NUMBER_ERROR_NONE){ + ERR("phn_record_destroy() failed"); + } } /* LCOV_EXCL_STOP */