EXITFREE is only there to satisfy valgrind, but even without it the LeakSanitizer doesn't report any errors. Maybe LeakSanitizer is smart enough to ignore leaks that are irrelevant?