utils: Change alloc function to malloc

This fixes problems with bindings if they want to free resources
5 jobs for master in 4 minutes and 19 seconds