Skip to content

Commit

Permalink
PATCH: gh#17218 memory leak
Browse files Browse the repository at this point in the history
Indeed, a variable's ref count was not getting decremented.

(cherry picked from commit 0463f3a)
  • Loading branch information
khwilliamson authored and steve-m-hay committed Feb 12, 2020
1 parent b26c7c7 commit a0640dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions regcomp.c
Original file line number Diff line number Diff line change
Expand Up @@ -18159,6 +18159,7 @@ S_regclass(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth,

/* Likewise for 'posixes' */
_invlist_union(posixes, cp_list, &cp_list);
SvREFCNT_dec(posixes);

/* Likewise for anything else in the range that matched only
* under UTF-8 */
Expand Down

0 comments on commit a0640dd

Please sign in to comment.