FLINT3.7.0-dev

flint_cleanup_master

Synopsis#include <flint/flint.h>
void flint_cleanup_master(void)source

Frees everything FLINT has cached: shuts down the global thread pool, frees the shared caches of thread_support.h, and then does what flint_cleanup does for the current thread. Call it once, from the main thread, after all other threads have finished with FLINT, typically just before the program exits. It makes memory checkers such as Valgrind report no reachable blocks; it is not needed for correctness.

Guides#

Cite this page

The FLINT team, “flint_cleanup_master (flint.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/flint/flint_cleanup_master.html (generated 2026-10-20).