diff options
author | Karl Williamson <public@khwilliamson.com> | 2013-01-13 13:31:38 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2013-01-13 13:59:01 -0700 |
commit | 91e8af102d3aa2fe6d31f64d9b5b1fad025cf8d7 (patch) | |
tree | a95448529120b7a0e2bc9874d497f8d442028623 | |
parent | 5afae9ed1cf4a0d2c8babbbade3fb39280883885 (diff) | |
download | perl-91e8af102d3aa2fe6d31f64d9b5b1fad025cf8d7.tar.gz |
regcomp.c: Stop potential leaks
These two ref counts were not at the same level as their corresponding
dec.
-rw-r--r-- | regcomp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -12203,8 +12203,8 @@ parseit: ckWARN2reg(RExC_parse, "Unrecognized escape \\%c in character class passed through", (int)value); + (void)ReREFCNT_inc(RExC_rx_sv); } - (void)ReREFCNT_inc(RExC_rx_sv); SvREFCNT_inc_simple_void_NN(listsv); } break; @@ -12261,10 +12261,10 @@ parseit: "False [] range \"%*.*s\"", w, w, rangebegin); (void)ReREFCNT_inc(RExC_rx_sv); - SvREFCNT_inc_simple_void_NN(listsv); cp_list = add_cp_to_invlist(cp_list, '-'); cp_list = add_cp_to_invlist(cp_list, prevvalue); } + SvREFCNT_inc_simple_void_NN(listsv); } range = 0; /* this was not a true range */ |