X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Ftypes%2Fdecl.c;h=5872a32504eacc915137c266ba9a9eb08bd017d9;hp=581eadd95d01858261b846ea76b1c99b2aaef702;hb=216e7ac3b97aed5a5d65c511dc061c78be90e79d;hpb=09529efcde471127419e141807b83b37077003a0 diff --git a/src/types/decl.c b/src/types/decl.c index 581eadd..5872a32 100644 --- a/src/types/decl.c +++ b/src/types/decl.c @@ -38,7 +38,7 @@ struct psi_decl *psi_decl_init(struct psi_decl_arg *func, struct psi_plist *args) { - struct psi_decl *d = calloc(1, sizeof(*d)); + struct psi_decl *d = pecalloc(1, sizeof(*d), 1); d->func = func; d->args = args;