Fix potential memory leak in Kerberos scripts

Reported by Maksim Shudrak.
This commit is contained in:
Jon Siwek 2018-09-10 18:06:07 -05:00
parent 7e26bfe07f
commit 34d0cf886c
3 changed files with 12 additions and 2 deletions

Binary file not shown.

View file

@ -0,0 +1,8 @@
# Needs perftools support.
#
# @TEST-REQUIRES: bro --help 2>&1 | grep -q mem-leaks
#
# @TEST-GROUP: leaks
#
# @TEST-EXEC: HEAP_CHECK_DUMP_DIRECTORY=. HEAPCHECK=local btest-bg-run bro bro -m -r $TRACES/krb/optional-service-name.pcap
# @TEST-EXEC: btest-bg-wait 60