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.
  • Loading branch information
khwilliamson committed Nov 15, 2019
1 parent 81a306d commit 0463f3a
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 @@ -18180,6 +18180,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 0463f3a

Please sign in to comment.