[postgis-devel] [PostGIS] #624: Memory leak in geography_from_text
strk
strk at keybit.net
Wed Oct 13 02:24:43 PDT 2010
On Sat, Oct 09, 2010 at 05:55:06AM -0000, PostGIS wrote:
> #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];
The above is not valid ANSI C. You need explicit alloc/free (palloc/pfree).
--strk;
() Free GIS & Flash consultant/developer
/\ http://strk.keybit.net/services.html
More information about the postgis-devel
mailing list