regcomp.c: Fix EBCDIC-only memory leak
authorKarl Williamson <khw@cpan.org>
Mon, 6 Oct 2014 20:55:38 +0000 (14:55 -0600)
committerKarl Williamson <khw@cpan.org>
Tue, 7 Oct 2014 14:51:11 +0000 (08:51 -0600)
regcomp.c

index fe719ab..1757d23 100644 (file)
--- a/regcomp.c
+++ b/regcomp.c
@@ -14433,6 +14433,7 @@ S_regclass(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth,
             }
             _invlist_union(cp_foldable_list, this_range, &cp_foldable_list);
             literal_endpoint = 0;
             }
             _invlist_union(cp_foldable_list, this_range, &cp_foldable_list);
             literal_endpoint = 0;
+            SvREFCNT_dec_NN(this_range);
 #endif
         }
 
 #endif
         }