[CI] use libc malloc for testing in order to be able to use valgrind
[mem footprint reduction] place prototype as a property. Although this makes its
status less privileged, it saved 4 bytes for each variable