X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Ftypes%2Fconst.c;h=1afbac029c85a09bf25c87394d946640868876c1;hp=1a06e431eb3358492362b6cba62ab82449b7d9cb;hb=216e7ac3b97aed5a5d65c511dc061c78be90e79d;hpb=09529efcde471127419e141807b83b37077003a0 diff --git a/src/types/const.c b/src/types/const.c index 1a06e43..1afbac0 100644 --- a/src/types/const.c +++ b/src/types/const.c @@ -29,7 +29,7 @@ struct psi_const *psi_const_init(struct psi_impl_type *type, zend_string *name, struct psi_impl_def_val *val) { - struct psi_const *c = calloc(1, sizeof(*c)); + struct psi_const *c = pecalloc(1, sizeof(*c), 1); if (name->val[0] == '\\') { c->name = zend_string_init(&name->val[1], name->len-1, 1);