- Attempt to fix the memory errors (probably when freeing the allocated buffers).