From 13910aff7aa0045ff6a63788c2bda8e0b6c69dc9 Mon Sep 17 00:00:00 2001 From: Timothy Stack Date: Tue, 5 Jul 2022 13:12:13 -0700 Subject: [PATCH] [lnav_log] leak the dumper list vector to avoid static ordering issues --- src/base/lnav_log.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base/lnav_log.cc b/src/base/lnav_log.cc index 9e63a6fc..d1114f84 100644 --- a/src/base/lnav_log.cc +++ b/src/base/lnav_log.cc @@ -126,9 +126,9 @@ lnav_log_mutex() static std::vector& DUMPER_LIST() { - static std::vector retval; + static auto* retval = new std::vector(); - return retval; + return *retval; } static std::vector CRASH_LIST;