[PostGIS] #6012: Memory leak in function lwcircstring_from_lwpointarray

PostGIS trac at osgeo.org
Tue Nov 4 00:56:05 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
 Keywords:            |
----------------------+---------------------------
 In function lwcircstring_construct the following line should be added
 {{{
   FLAGS_SET_READONLY(result->points->flags, 0);
 }}}
 to get the ownership of the pointarray that was created with the read-only
 flag to 1 in function `ptarray_construct_reference_data` which has been
 called in function `lwcircstring_from_lwpointarray`
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/6012>
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