Skip to content

Commit

Permalink
Merge pull request #205 from georust/mem_leaks
Browse files Browse the repository at this point in the history
Fix memory leaks reported by Valgrind & re-generate pre-build bindings
  • Loading branch information
lnicola authored Aug 5, 2021
2 parents 858eb38 + cc12a69 commit ab05ff2
Show file tree
Hide file tree
Showing 17 changed files with 33,155 additions and 64,387 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

- **Breaking**: Drop pre-build bindings for GDAL versions < 2.4. The bindgen feature can be used to generate bindings for older versions.
- Fix memory leaks reported by Valgrind. This required re-generation of the pre-build bindings.
- <https://github.com/georust/gdal/pull/205>

- **Breaking**: Implement `TryFrom` instead of `From` to convert from gdal geometries to `geo-types`. This avoids a possible panic on unsupported geometries and returns an error instead.
- Add `Feature::c_feature` that returns the OGR feature handle.
- <https://github.com/georust/gdal/pull/192>
Expand Down
1 change: 1 addition & 0 deletions gdal-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ pub fn write_bindings(include_paths: Vec<String>, out_path: &Path) {
.constified_enum_module(".*")
.ctypes_prefix("libc")
.allowlist_function("CPL.*")
.allowlist_function("CSL.*")
.allowlist_function("GDAL.*")
.allowlist_function("OGR.*")
.allowlist_function("OSR.*")
Expand Down
Loading

0 comments on commit ab05ff2

Please sign in to comment.