--- tests/CMakeLists.txt.orig	2026-09-22 19:30:35 UTC
+++ tests/CMakeLists.txt
@@ -1,5 +1,7 @@
 # If leaks are found, abort() during interpreter shutdown to catch this in the CI
-add_definitions(-DNB_ABORT_ON_LEAK)
+# Disabled on FreeBSD: test extensions intentionally leak references, and the
+# abort causes the ports test target to fail despite all pytest tests passing.
+# add_definitions(-DNB_ABORT_ON_LEAK)
 
 if (NB_TEST_STABLE_ABI)
   set(NB_EXTRA_ARGS ${NB_EXTRA_ARGS} STABLE_ABI)
