mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00

These were previously reporting leaks due to various allocations not getting cleaned up during the stack unwind, but at the current state of the transition toward IntrusivePtr usage, theses tests no longer leak.
26 lines
371 B
Text
26 lines
371 B
Text
# @TEST-EXEC: zeek -b %INPUT >out 2>&1
|
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff out
|
|
|
|
event zeek_init()
|
|
{
|
|
local i = 32;
|
|
print 1.2.3.4/i;
|
|
++i;
|
|
print 1.2.3.4/i;
|
|
print "init 1";
|
|
}
|
|
|
|
event zeek_init()
|
|
{
|
|
local i = 128;
|
|
print [::]/i;
|
|
++i;
|
|
print [::]/i;
|
|
print "init 1";
|
|
}
|
|
|
|
event zeek_init() &priority=-10
|
|
{
|
|
print "init last";
|
|
}
|
|
|