Fixed codegen of pointer malloc of struct