struct psi_return_exp *psi_return_exp_init(struct psi_decl_var *func,
struct psi_plist *args, struct psi_set_exp *set)
{
- struct psi_return_exp *exp = calloc(1, sizeof(*exp));
+ struct psi_return_exp *exp = pecalloc(1, sizeof(*exp), 1);
exp->func = func;
exp->args = args;
if (exp->args) {
if (psi_plist_count(exp->args) != psi_plist_count(impl->decl->args)) {
data->error(data, exp->token, PSI_WARNING,
- "Argument count of return statement of implementation '%s'"
+ "Argument count of return statement of implementation '%s' "
"does not match argument count of declaration '%s'",
impl->func->name->val, impl->decl->func->var->name->val);
return false;