Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #6982 from EOSIO/fix-sh-leak
Browse files Browse the repository at this point in the history
#6980: fix memory leak when --trace-history not used
  • Loading branch information
tbfleming authored Mar 21, 2019
2 parents f358cad + 868ea8c commit 976bf8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/state_history_plugin/state_history_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ struct state_history_plugin_impl : std::enable_shared_from_this<state_history_pl
}

void on_applied_transaction(const transaction_trace_ptr& p) {
if (p->receipt) {
if (p->receipt && trace_log) {
if (is_onblock(p))
onblock_trace = p;
else if (p->failed_dtrx_trace)
Expand Down

0 comments on commit 976bf8a

Please sign in to comment.