projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix a few memory leaks at exit time.
[tinc]
/
test
/
testlib.sh.in
diff --git
a/test/testlib.sh.in
b/test/testlib.sh.in
index
14192ea
..
224ab4f
100644
(file)
--- a/
test/testlib.sh.in
+++ b/
test/testlib.sh.in
@@
-332,6
+332,11
@@
cleanup() {
(
set +ex
+ if command -v cleanup_hook 2>/dev/null; then
+ echo >&2 "Cleanup hook found, calling..."
+ cleanup_hook
+ fi
+
stop_all_tincs
# Ask nicely, then kill anything that's left.