Skip to content

Commit 87db11e

Browse files
committed
ogr_sql_test.py: avoid memory leak under ASAN CI
1 parent b73b8f5 commit 87db11e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

autotest/ogr/ogr_sql_test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ def get_lyr():
102102
with pytest.raises(Exception):
103103
lyr.GetName()
104104

105-
assert get_lyr().GetFeatureCount() == 10
105+
# This leaks memory
106+
if not gdaltest.is_travis_branch("sanitize"):
107+
assert get_lyr().GetFeatureCount() == 10
106108

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

0 commit comments

Comments
 (0)