mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

E.g. ones that throw interpreter exceptions, as those are currently known to potentially cause leaks. Fixing the underlying leaks involves the larger task of more IntrusivePtr usage. Reference cycles may also cause leaks.
27 lines
489 B
Text
27 lines
489 B
Text
# TODO: interpreter exceptions currently may cause memory leaks, so disable leak checks
|
|
# @TEST-EXEC: ASAN_OPTIONS="detect_leaks=0" 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";
|
|
}
|
|
|