[postgis-devel] [PostGIS] #624: Memory leak in geography_from_text

PostGIS trac at osgeo.org
Fri Oct 8 22:55:06 PDT 2010


#624: Memory leak in geography_from_text
---------------------+------------------------------------------------------
 Reporter:  ryang    |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 1.5.3
Component:  postgis  |     Version:  1.5.X        
 Keywords:           |  
---------------------+------------------------------------------------------
 char *wkt is palloc'ed and never free'd.

 Was crashing Postgres every run of my script.  Made a simple change to:

 char wkt[size+1];

 And problem has gone away.  Couldn't track down the DirectFunctionCall3 to
 store the value and free wkt, so just did the quick hack without a
 pointer.

 I found the problem in 2.0, but it must exist simarily in 1.5.2 as I've
 been battling it all evening, and only tried 2.0 out of desperation.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/624>
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-devel mailing list