mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 11:08:20 +00:00
fixed 3 leaks in creating pattern values
This commit is contained in:
parent
610d1ae407
commit
2fa1ea77e4
4 changed files with 49 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue