From cd066f09bf3b4bae8cd276a36becb86649494f45 Mon Sep 17 00:00:00 2001 From: Christian Kreibich Date: Wed, 23 Jun 2021 16:03:53 -0700 Subject: [PATCH] Fix perftools-enabled build --- src/main.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cc b/src/main.cc index 9b3c25ce6b..8d656290c9 100644 --- a/src/main.cc +++ b/src/main.cc @@ -26,10 +26,10 @@ int main(int argc, char** argv) zeek::detail::profiling_logger->Log(); #ifdef USE_PERFTOOLS_DEBUG - if ( perftools_leaks ) + if ( options.perftools_check_leaks ) heap_checker = new HeapLeakChecker("net_run"); - if ( perftools_profile ) + if ( options.perftools_profile ) { HeapProfilerStart("heap"); HeapProfilerDump("pre net_run");