Files
nanobot/tests
chengyongruandsnailak c758ce8f40 fix(runtime): stop Windows identity polling memory leak
Reuse the FILETIME structure and cached kernel32 bindings rather than creating a new ctypes pointer type for every identity query. Python before 3.14 retains those types in its global pointer cache, so idle WebUI and gateway polling could accumulate gigabytes.

Keep each identity query live and preserve the native HANDLE signatures and handle cleanup. Add a native Windows regression that checks identity stability and a bounded set of pointer types, including on Python 3.14 where ctypes no longer retains the types globally.

Fixes #6506

Co-authored-by: snailak <141750781+snailak@users.noreply.github.com>
2026-10-28 11:49:26 +08:00
..