From addad853542c5f28e32d436c7af43ff3a154f81f Mon Sep 17 00:00:00 2001 From: Arun Thakur Date: Tue, 13 Aug 2024 23:52:09 +0530 Subject: [PATCH] [centrality] fixed betweennessCentrality.c --- src/metrics/betweennessCentrality.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/metrics/betweennessCentrality.c b/src/metrics/betweennessCentrality.c index d50d02ae49..06882f436a 100644 --- a/src/metrics/betweennessCentrality.c +++ b/src/metrics/betweennessCentrality.c @@ -68,12 +68,8 @@ process( (*result_count) = 0; } - pgr_global_report(log_msg, notice_msg, err_msg); + pgr_global_report(&log_msg, ¬ice_msg, &err_msg); - - if (log_msg) pfree(log_msg); - if (notice_msg) pfree(notice_msg); - if (err_msg) pfree(err_msg); pgr_SPI_finish(); }