Replace malloc with calloc

- platform layer currently broken (not adapted yet)
- memmory_buffer_alloc too
31 files changed