Skip to content

Commit

Permalink
make sure the leak checker works
Browse files Browse the repository at this point in the history
  • Loading branch information
paleolimbot committed Dec 2, 2023
1 parent 59773f9 commit ec0f06b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ install(
PATTERN "*.h")

if(GEOARROW_GEOS_BUILD_TESTS)
set(MEMORYCHECK_COMMAND_OPTIONS "--leak-check=full --error-exitcode=1")

include(CTest)

if(NOT DEFINED CMAKE_CXX_STANDARD)
Expand Down
2 changes: 1 addition & 1 deletion src/geoarrow_geos/geoarrow_geos_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class GEOSCppGeometry {

~GEOSCppGeometry() {
if (ptr != nullptr) {
GEOSGeom_destroy_r(handle, ptr);
// GEOSGeom_destroy_r(handle, ptr);
}
}
};
Expand Down

0 comments on commit ec0f06b

Please sign in to comment.