From: Michael Wallner Date: Tue, 25 Jul 2017 09:16:48 +0000 (+0200) Subject: fix leak X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=5bf418f9c241e653f2e1825eef2ce850cf65db96;p=m6w6%2Fext-psi fix leak --- diff --git a/src/data.c b/src/data.c index 454f9f5..c45ddf6 100644 --- a/src/data.c +++ b/src/data.c @@ -434,14 +434,14 @@ bool psi_data_validate(struct psi_data *dst, struct psi_data *src) cval = psi_impl_def_val_init(PSI_T_INT, NULL); cval->ival.zend.lval = str->size; cnst = psi_const_init(ctyp, sname, cval); - dst->consts = psi_plist_add(dst->consts, &cnst); + src->consts = psi_plist_add(src->consts, &cnst); free(sname); ctyp = psi_const_type_init(PSI_T_INT, "int"); cval = psi_impl_def_val_init(PSI_T_INT, NULL); cval->ival.zend.lval = str->align; cnst = psi_const_init(ctyp, aname, cval); - dst->consts = psi_plist_add(dst->consts, &cnst); + src->consts = psi_plist_add(src->consts, &cnst); free(aname); } }