Adapt the platform layer from malloc to calloc
3 files changed