From b654a68c86441069996f2f2cdf96a09d40b8139e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 26 Feb 2020 05:45:36 +0100 Subject: [PATCH] main: free the global scope in terminate_bro() Make valgrind a bit happier. --- src/main.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.cc b/src/main.cc index 152e3c77e9..e8f414fe32 100644 --- a/src/main.cc +++ b/src/main.cc @@ -308,6 +308,9 @@ void terminate_bro() delete plugin_mgr; delete val_mgr; + // free the global scope + pop_scope(); + reporter = 0; }