Return type check for phn_record_destroy() 79/258579/1
authorAbhimanyu Swami <abhimanyu1.s@samsung.com>
Thu, 20 May 2021 10:04:34 +0000 (15:34 +0530)
committerAbhimanyu Swami <abhimanyu1.s@samsung.com>
Thu, 20 May 2021 10:04:34 +0000 (15:34 +0530)
Change-Id: If28a9c95c15cdfc5b23818d68e419e0843d5076b
Signed-off-by: Abhimanyu Swami <abhimanyu1.s@samsung.com>
common/phn-record.c

index c7d7e6c020f3467850bf6a611dc625ec64e8d4f9..0e96ce6f6a8807d23716156eb39e17ca67d8c7c1 100644 (file)
@@ -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 */