From 8697e70fb0a9745df284ee679f6390fcaecdc401 Mon Sep 17 00:00:00 2001 From: Todd Fleming Date: Thu, 11 Apr 2019 11:46:57 -0400 Subject: [PATCH] #6980: memory leak when --trace-history not used --- plugins/state_history_plugin/state_history_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/state_history_plugin/state_history_plugin.cpp b/plugins/state_history_plugin/state_history_plugin.cpp index 0df317198d7..2a2a1664126 100644 --- a/plugins/state_history_plugin/state_history_plugin.cpp +++ b/plugins/state_history_plugin/state_history_plugin.cpp @@ -345,7 +345,7 @@ struct state_history_plugin_impl : std::enable_shared_from_thisreceipt) { + if (p->receipt && trace_log) { if (is_onblock(p)) onblock_trace = p; else if (p->failed_dtrx_trace)