Skip to content

Commit

Permalink
Get free from global symbol table on Linux as we do for macos.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Gillies committed Jul 15, 2021
1 parent fd68d0d commit 438ac6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.txt
Expand Up @@ -23,6 +23,8 @@ New features:

Bug fixes:

- We no longer attempt to load libc to get the free function on Linux, but get
it from the global symbol table.
- GEOS error messages printed when GEOS_getCoordSeq() is passed an empty
geometry are avoided by never passing an empty geometry (#1134).
- Python's builtin super() is now used only as described in PEP 3135 (#1109).
Expand Down
3 changes: 2 additions & 1 deletion shapely/geos.py
Expand Up @@ -101,7 +101,8 @@ def exists_conda_env():
c_alt_paths = [
'libc.musl-x86_64.so.1'
]
free = load_dll('c', fallbacks=c_alt_paths).free
# free = load_dll('c', fallbacks=c_alt_paths).free
free = CDLL(None).free
free.argtypes = [c_void_p]
free.restype = None

Expand Down

0 comments on commit 438ac6e

Please sign in to comment.