From 607fcf73210524302ba8ca861fcb20e13eaea39c Mon Sep 17 00:00:00 2001 From: doctorpangloss <2229300+doctorpangloss@users.noreply.github.com> Date: Thu, 23 Oct 2025 19:49:59 -0700 Subject: [PATCH] Fix trim --- comfy/model_management.py | 1 + 1 file changed, 1 insertion(+) diff --git a/comfy/model_management.py b/comfy/model_management.py index d14f398e5..413b16b09 100644 --- a/comfy/model_management.py +++ b/comfy/model_management.py @@ -651,6 +651,7 @@ def trim_memory() -> bool: try: if sys.platform.startswith('linux'): import ctypes + import ctypes.util libc_path = ctypes.util.find_library('c') if not libc_path: return False