[postgis-users] question about memory leak when deserialize

Paragon Corporation lr at pcorp.us
Tue Jun 10 08:00:51 PDT 2008


Chenzhen,

I think most people that read the postgis dev users group probably read this
one (users group) as well.  Your question is more suitable to the dev group
though.

http://postgis.refractions.net/mailman/listinfo/postgis-devel 

Hope that helps,
Regina

-----Original Message-----
From: postgis-users-bounces at postgis.refractions.net
[mailto:postgis-users-bounces at postgis.refractions.net] On Behalf Of
zhenchen17
Sent: Tuesday, June 10, 2008 9:09 AM
To: postgis-users at postgis.refractions.net
Subject: [postgis-users] question about memory leak when deserialize

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
_______________________________________________
postgis-users mailing list
postgis-users at postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users






More information about the postgis-users mailing list