Skip to content

Commit

Permalink
ogr_sql_test.py: avoid memory leak under ASAN CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Oct 27, 2024
1 parent b73b8f5 commit 87db11e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion autotest/ogr/ogr_sql_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ def get_lyr():
with pytest.raises(Exception):
lyr.GetName()

assert get_lyr().GetFeatureCount() == 10
# This leaks memory
if not gdaltest.is_travis_branch("sanitize"):
assert get_lyr().GetFeatureCount() == 10

# Check that we can actually remove the files (i.e. references on dataset have been dropped)
os.unlink(tmp_path / "test_ogr_sql_execute_sql.shp")
Expand Down

0 comments on commit 87db11e

Please sign in to comment.