It looks like free after finalize properly errors out, but currently malloc does not neither before initialize nor after finalize.
The repository is checked out at /workspace/repo. Work only on production
source code. Do not modify tests, CMake registration, CI configuration, or the
grading environment. Use the existing build tree for local verification.