Added style check that ensures no direct malloc is done.