[postgis-devel] question about memory leak when deserialize

陈振 zhenchen17 at gmail.com
Tue Jun 10 18:10:53 PDT 2008


Hi folk,
I have a question on memory leak when deserialize.
In the fuctions such as lwmpoly_deserialize, lwmline_deserialize and
lwmpoint_deserialize, there is a temporal variable named insp which is
defined as LWGEOM_INSPECTED *insp; It allocated memory when it
initialized in the statement : insp = lwgeom_inspect(srl);
However, when finished, nowhere to free this memory which causes
memory leak.
Is that a bug or on purpose? or should be free manully by some
methods?

Regards!
Chenzhen

chenzhen,zhenchen17 at gmail.com
2008-06-11 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20080611/15802485/attachment.html>


More information about the postgis-devel mailing list