[geos-devel] [GEOS] #923: Memory leak in GEOSNode
GEOS
geos-trac at osgeo.org
Tue Sep 18 15:30:12 PDT 2018
#923: Memory leak in GEOSNode
-------------------------+---------------------------
Reporter: Algunenano | Owner: geos-devel@…
Type: defect | Status: new
Priority: major | Milestone: 3.7.0
Component: Default | Version: master
Severity: Significant | Resolution:
Keywords: |
-------------------------+---------------------------
Comment (by cvvergara):
Doing the same but with
{{{
git checkout -b three-weeks-ago 1be02b3644672ac97842bfa2ad4cb2810696dc75
}}}
with clang
{{{
$clang -fsanitize=address geos_leak.c -lgeos_c
-L/home/vicky/geos/vicky/build/lib -I/home/vicky/geos/vicky/build/include
-I /home/vicky/geos/vicky/include
$ ./a.out
$
}}}
using vlagrind
{{{
$ gcc geos_leak.c -lgeos_c -L/home/vicky/geos/vicky/build/lib
-I/home/vicky/geos/vicky/build/include -I /home/vicky/geos/vicky/include
$ valgrind --leak-check=yes ./a.out
==6163== Memcheck, a memory error detector
==6163== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==6163== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright
info
==6163== Command: ./a.out
==6163==
==6163==
==6163== HEAP SUMMARY:
==6163== in use at exit: 73,848 bytes in 4 blocks
==6163== total heap usage: 65 allocs, 61 frees, 81,840 bytes allocated
==6163==
==6163== LEAK SUMMARY:
==6163== definitely lost: 0 bytes in 0 blocks
==6163== indirectly lost: 0 bytes in 0 blocks
==6163== possibly lost: 0 bytes in 0 blocks
==6163== still reachable: 73,848 bytes in 4 blocks
==6163== suppressed: 0 bytes in 0 blocks
==6163== Reachable blocks (those to which a pointer was found) are not
shown.
==6163== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==6163==
==6163== For counts of detected and suppressed errors, rerun with: -v
==6163== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
}}}
The output looks the same to me for both commits on the commit history.
Maybe I am doing something wrong, I cant reproduce the problem.
--
Ticket URL: <https://trac.osgeo.org/geos/ticket/923#comment:6>
GEOS <http://trac.osgeo.org/geos>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).
More information about the geos-devel
mailing list