Ticket #624 (closed defect: fixed)
Memory leak in geography_from_text
|Reported by:||ryang||Owned by:||pramsey|
char *wkt is palloc'ed and never free'd.
Was crashing Postgres every run of my script. Made a simple change to:
And problem has gone away. Couldn't track down the DirectFunctionCall?3 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.