pe*alloc
[m6w6/ext-psi] / src / types / decl_struct.c
index c2b8cc1779806b8582d150dcc30e87d11a2cf1a7..14076c6b296d7cd8a72f5e001ddff4ab30ca6cd2 100644 (file)
@@ -31,7 +31,7 @@
 struct psi_decl_struct* psi_decl_struct_init(zend_string *name,
                struct psi_plist *args)
 {
-       struct psi_decl_struct *s = calloc(1, sizeof(*s));
+       struct psi_decl_struct *s = pecalloc(1, sizeof(*s), 1);
        s->name = zend_string_copy(name);
        s->args = args;
        return s;