]> granicus.if.org Git - postgis/commitdiff
Removed improper freeing of memory.
authorBborie Park <bkpark at ucdavis.edu>
Tue, 26 Jun 2012 18:17:19 +0000 (18:17 +0000)
committerBborie Park <bkpark at ucdavis.edu>
Tue, 26 Jun 2012 18:17:19 +0000 (18:17 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9986 b70326c6-7e19-0410-871a-916f4a2858ee

raster/rt_pg/rt_pg.c

index 414a173e0544b3a1d2ce629118472cd017f06058..bc0f6ec940c811ba6c1109949dc3646804867d16 100644 (file)
@@ -11321,12 +11321,8 @@ Datum RASTER_mapAlgebraFctNgb(PG_FUNCTION_ARGS)
 
     pgrtn = rt_raster_serialize(newrast);
     rt_raster_destroy(newrast);
-    if (NULL == pgrtn) {
-        rt_raster_destroy(raster);
-        rt_raster_destroy(newrast);
-
+    if (NULL == pgrtn)
         PG_RETURN_NULL();
-    }
 
     POSTGIS_RT_DEBUG(3, "RASTER_mapAlgebraFctNgb: raster serialized");
     POSTGIS_RT_DEBUG(4, "RASTER_mapAlgebraFctNgb: returning raster");