[postgis-tickets] r16485 - Fix memory leak in lwline_chaikin
Raul
raul at rmr.ninja
Fri Mar 23 02:24:00 PDT 2018
Author: algunenano
Date: 2018-03-23 02:24:00 -0700 (Fri, 23 Mar 2018)
New Revision: 16485
Modified:
trunk/liblwgeom/lwchaikins.c
Log:
Fix memory leak in lwline_chaikin
Closes https://github.com/postgis/postgis/pull/233
Closes #4053
Modified: trunk/liblwgeom/lwchaikins.c
===================================================================
--- trunk/liblwgeom/lwchaikins.c 2018-03-23 06:35:53 UTC (rev 16484)
+++ trunk/liblwgeom/lwchaikins.c 2018-03-23 09:24:00 UTC (rev 16485)
@@ -102,12 +102,11 @@
{
POINTARRAY *pa, *pa_new;
int j;
+ LWLINE *oline;
if( lwline_is_empty(iline))
return lwline_clone(iline);
-
- LWLINE *oline = lwline_construct_empty(iline->srid, FLAGS_GET_Z(iline->flags), FLAGS_GET_M(iline->flags));
pa = iline->points;
for (j=0;j<n_iterations;j++)
{
More information about the postgis-tickets
mailing list