X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Ftypes%2Fimpl_func.c;h=a6f45e6943d1d9ccfc32dd8453e75c7c6f915ef4;hp=d1604482053fede9537f9cfef72141fa5c51d410;hb=216e7ac3b97aed5a5d65c511dc061c78be90e79d;hpb=09529efcde471127419e141807b83b37077003a0 diff --git a/src/types/impl_func.c b/src/types/impl_func.c index d160448..a6f45e6 100644 --- a/src/types/impl_func.c +++ b/src/types/impl_func.c @@ -29,7 +29,7 @@ struct psi_impl_func *psi_impl_func_init(zend_string *name, struct psi_plist *args, struct psi_impl_type *type) { - struct psi_impl_func *func = calloc(1, sizeof(*func)); + struct psi_impl_func *func = pecalloc(1, sizeof(*func), 1); func->name = zend_string_copy(name); func->args = args ? : psi_plist_init((psi_plist_dtor) psi_impl_arg_free);