[SCM] PostGIS branch master updated. 3.5.0-372-gb9f1c4c68
git at osgeo.org
git at osgeo.org
Thu Jun 5 10:47:50 PDT 2025
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".
The branch, master has been updated
via b9f1c4c6876b7d6bbeb457edf4feac11be48c920 (commit)
from a7683d7dd2841b4a94536e00248325ea01d832f3 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit b9f1c4c6876b7d6bbeb457edf4feac11be48c920
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Thu Jun 5 10:47:45 2025 -0700
Avoid free when pointer is null. References #5921
diff --git a/postgis/gserialized_estimate.c b/postgis/gserialized_estimate.c
index a1db67660..1e84228b0 100644
--- a/postgis/gserialized_estimate.c
+++ b/postgis/gserialized_estimate.c
@@ -2271,7 +2271,9 @@ gserialized_sel_internal(PlannerInfo *root, List *args, int varRelid, int mode)
nd_stats = pg_nd_stats_from_tuple(vardata.statsTuple, mode);
ReleaseVariableStats(vardata);
selectivity = estimate_selectivity(&search_box, nd_stats, mode);
- pfree(nd_stats);
+ if (nd_stats)
+ pfree(nd_stats);
+
return selectivity;
}
-----------------------------------------------------------------------
Summary of changes:
postgis/gserialized_estimate.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list