[PostGIS] #6012: Memory leak in function lwcircstring_from_lwpointarray

PostGIS trac at osgeo.org
Thu Nov 6 01:29:28 PST 2025


#6012: Memory leak in function lwcircstring_from_lwpointarray
-----------------------+---------------------------
  Reporter:  ezimanyi  |      Owner:  pramsey
      Type:  defect    |     Status:  new
  Priority:  medium    |  Milestone:  PostGIS 3.6.1
 Component:  postgis   |    Version:  3.5.x
Resolution:            |   Keywords:
-----------------------+---------------------------
Comment (by mschoema):

 Note that this issue also happens in lwcircstring_from_lwmpoint, but these
 are the only two calls to ptarray_construct_reference_data other than the
 ones in the _from_gserialized functions.

 I also see that these functions (lwcircstring_from_lwpointarray and
 lwcircstring_from_lwmpoint, amongst a few others) are only defined in
 lwcircstring.c (though not static) and not exposed in liblwgeom.h Is there
 a reason for that? I see an equivalent lwline_from_ptarray function for
 lines, but it is marked as deprecated in liblwgeom.h. Why was it
 deprecated, and what should the alternative be to create a line (or a
 circular string) from a set of points?
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/6012#comment:3>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list