Unverified Commit 67897195 authored by Takeshi Watanabe's avatar Takeshi Watanabe Committed by GitHub

Fix leak in `mrb_str_count`

parent 152e8c5b
......@@ -718,6 +718,7 @@ mrb_str_count(mrb_state *mrb, mrb_value str)
if (n >= 0) count++;
}
tr_pattern_free(mrb, pat);
return mrb_fixnum_value(count);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment