Skip to content

Commit

Permalink
fix MPSCQueue memory not released with DefaultAllocator (apache#2553)
Browse files Browse the repository at this point in the history
Signed-off-by: Lijin Xiong <[email protected]>
Co-authored-by: Lijin Xiong <[email protected]>
  • Loading branch information
legionxiong and Lijin Xiong authored Mar 4, 2024
1 parent 24fc31e commit d243ddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/butil/containers/mpsc_queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ bool MPSCQueue<T, Alloc>::DequeueImpl(T* data) {
ReverseList(node);
}
_cur_dequeue_node = node->next;
return_object(old_node);
_alloc.Free(old_node);

return true;
}
Expand Down

0 comments on commit d243ddf

Please sign in to comment.