Opened 10 years ago

Closed 10 years ago

#2775 closed defect (fixed)

lwline_from_lwmpoint leaks memory

Reported by: strk Owned by: pramsey
Priority: medium Milestone: PostGIS 2.0.7
Component: postgis Version: 2.0.x
Keywords: Cc:

Description

The lwline_from_lwmpoint function creates an lwline with a pointarray marked as "read-only" when instead the serialized point list is created internally to the function.

Thanks Kashif Rasul for finding out: https://github.com/postgis/postgis/pull/23#issuecomment-46825167

I hadn't checked up to which version the problem occurs.

Change History (2)

comment:1 by strk, 10 years ago

Milestone: PostGIS 2.0.7
Version: 2.1.x2.0.x

2.0.6 is also affected

comment:2 by pramsey, 10 years ago

Resolution: fixed
Status: newclosed

Fix committed in 2.0 at r12649, 2.1 at 12650, trunk at r12651

Note: See TracTickets for help on using tickets.