pe*alloc
[m6w6/ext-psi] / src / types / return_exp.c
index 78e1aa56e96e5ea0f990fa80d0ce391cd8c844af..d66c55cca751b2ee007dd076fab2b0b040087329 100644 (file)
@@ -30,7 +30,7 @@
 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;
@@ -106,7 +106,7 @@ static inline bool psi_return_exp_validate_decl_args(struct psi_data *data,
        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;