From 5bf418f9c241e653f2e1825eef2ce850cf65db96 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 25 Jul 2017 11:16:48 +0200 Subject: [PATCH] fix leak --- src/data.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } } -- 2.30.2