Skip to content

Commit cb7333d

Browse files
committed
xpath BUGFIX memory leak
1 parent 887f0b1 commit cb7333d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/xpath.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5006,6 +5006,10 @@ xpath_re_match(struct lyxp_set **args, uint32_t UNUSED(arg_count), struct lyxp_s
50065006
(*pattern)->expr = args[1]->val.str;
50075007
rc = lyplg_type_validate_patterns(set->ctx, patterns, args[0]->val.str, strlen(args[0]->val.str), &err);
50085008

5009+
if (set->cur_node) {
5010+
LOG_LOCBACK(0, 1);
5011+
}
5012+
50095013
/* free the pattern */
50105014
free(*pattern);
50115015
LY_ARRAY_FREE(patterns);

0 commit comments

Comments
 (0)