commit | f06d19d682e92a72697be707dee820dcfc41b511 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Fri Aug 04 14:04:08 2023 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Fri Aug 04 14:04:08 2023 +0200 |
tree | e28a81d33de186b42d19695737cded772e3e9ea7 | |
parent | 513b87daa2b5022eb49cf80610c37f912e80bcea [diff] |
xpath BUGFIX proper set free
diff --git a/src/xpath.c b/src/xpath.c index 8fe2d51..259fd9c 100644 --- a/src/xpath.c +++ b/src/xpath.c
@@ -991,11 +991,7 @@ return; } - if (trg->type == LYXP_SET_NODE_SET) { - free(trg->val.nodes); - } else if (trg->type == LYXP_SET_STRING) { - free(trg->val.str); - } + lyxp_set_free_content(trg); set_init(trg, src); if (src->type == LYXP_SET_SCNODE_SET) {