X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Ftypes%2Fimpl_func.c;h=a6f45e6943d1d9ccfc32dd8453e75c7c6f915ef4;hb=35060621f2fd5079502543d17942127c1a602f72;hp=d1604482053fede9537f9cfef72141fa5c51d410;hpb=2fa436074ca9a5e87f39b696de832fa2188fcfc6;p=m6w6%2Fext-psi 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);