[SCM] PostGIS branch master updated. 3.5.0-392-g283e2bbe9
git at osgeo.org
git at osgeo.org
Wed Jun 11 07:13:33 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 283e2bbe96e2b70d37a6b9a1ea8be7d1ab9e123c (commit)
from 0f4a868ef891e6211510e2e3b39a7d6ca882f063 (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 283e2bbe96e2b70d37a6b9a1ea8be7d1ab9e123c
Author: Maksim Korotkov <m.korotkov at postgrespro.ru>
Date: Tue Jun 10 14:42:37 2025 +0300
fix potential NULL dereference
Signed-off-by: Maksim Korotkov <m.korotkov at postgrespro.ru>
diff --git a/liblwgeom/stringbuffer.c b/liblwgeom/stringbuffer.c
index be477ca42..66951e39c 100644
--- a/liblwgeom/stringbuffer.c
+++ b/liblwgeom/stringbuffer.c
@@ -84,8 +84,11 @@ stringbuffer_create_with_size(size_t size)
void
stringbuffer_destroy(stringbuffer_t *s)
{
- stringbuffer_release(s);
- if ( s ) lwfree(s);
+ if ( s )
+ {
+ stringbuffer_release(s);
+ lwfree(s);
+ }
}
/**
-----------------------------------------------------------------------
Summary of changes:
liblwgeom/stringbuffer.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list