Browse Source

handle gracefully if no malloc_trim() available (#1800)

pull/1808/head
Sander 4 years ago
committed by Safihre
parent
commit
e8503e89c6
  1. 3
      sabnzbd/__init__.py

3
sabnzbd/__init__.py

@ -59,7 +59,10 @@ elif os.name == "posix":
# See if we have Linux memory functions
try:
LIBC = ctypes.CDLL("libc.so.6")
LIBC.malloc_trim(0)
except:
# No malloc_trim(), probably because no libc
LIBC = None
pass
# Parse macOS version numbers

Loading…
Cancel
Save