mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Fix new[]/delete mismatch in RE.cc reported by jbaines, addresses #958.
This commit is contained in:
parent
f4d59f8137
commit
7e4963b22c
1 changed files with 1 additions and 1 deletions
|
@ -496,7 +496,7 @@ static RE_Matcher* matcher_merge(const RE_Matcher* re1, const RE_Matcher* re2,
|
|||
safe_snprintf(merge_text, n, "(%s)%s(%s)", text1, merge_op, text2);
|
||||
|
||||
RE_Matcher* merge = new RE_Matcher(merge_text);
|
||||
delete merge_text;
|
||||
delete [] merge_text;
|
||||
|
||||
merge->Compile();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue