Skip to content

Commit

Permalink
fix third leak
Browse files Browse the repository at this point in the history
  • Loading branch information
Arniiiii committed Sep 21, 2024
1 parent fb26ff1 commit e310609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmtlog/fmtlog-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ class fmtlogDetailT
auto& node = bgThreadBuffers[i];
if (node.header) continue;
node.header = node.tb->varq.front();
if (!node.header && node.tb->shouldDeallocate) {
if (node.tb->shouldDeallocate) {
delete node.tb;
node = bgThreadBuffers.back();
bgThreadBuffers.pop_back();
Expand Down

0 comments on commit e310609

Please sign in to comment.