Only malloc memory for args if we are going to copy them