fixed 3 leaks in creating pattern values

This commit is contained in:
Vern Paxson 2018-06-26 10:43:06 -07:00
parent 610d1ae407
commit 2fa1ea77e4
4 changed files with 49 additions and 5 deletions

View file

@ -196,8 +196,15 @@ CCL_EXPR ("[:"[[:alpha:]]+":]")
%%
YY_BUFFER_STATE RE_buf;
void RE_set_input(const char* str)
{
RE_parse_input = str;
yy_scan_string(str);
RE_buf = yy_scan_string(str);
}
void RE_done_with_scan()
{
yy_delete_buffer(RE_buf);
}