From 9383e83f66e7cb0180d6acfc435d2622615c2c7f Mon Sep 17 00:00:00 2001 From: Frederic Suter Date: Mon, 30 Oct 2017 22:16:31 +0100 Subject: [PATCH] fix invalid read --- src/instr/instr_config.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/instr/instr_config.cpp b/src/instr/instr_config.cpp index 6c837b2213..d8a3a82ac1 100644 --- a/src/instr/instr_config.cpp +++ b/src/instr/instr_config.cpp @@ -139,10 +139,10 @@ int TRACE_end() TRACE_last_timestamp_to_dump = surf_get_clock(); TRACE_paje_dump_buffer(true); - container_t root = simgrid::instr::Container::getRootContainer(); + simgrid::instr::Type* root_type = simgrid::instr::Container::getRootContainer()->type_; /* destroy all data structures of tracing (and free) */ - delete root; - delete root->type_; + delete simgrid::instr::Container::getRootContainer(); + delete root_type; /* close the trace files */ const char* format = xbt_cfg_get_string(OPT_TRACING_FORMAT); -- 2.20.1