Check for secure memory allocation and free
Created by: claucece
A library should be sufficiently secure in the ways it is written.
- Check that all pointers are freed when needed.
- Check that all pointers are nullified when freed.
- Check that all pointers are correctly allocated.
- Check that valgrind locally and on the CI machines does not report an error.