Skip to content

Commit

Permalink
[bugfix] remove ring_buffer_queue_[head_].release(); in RingBuffer to…
Browse files Browse the repository at this point in the history
… avoid memory leak
  • Loading branch information
ChunelFeng committed Aug 27, 2023
1 parent 4da231b commit ddfcf65
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/UtilsCtrl/ThreadPool/Queue/UAtomicRingBufferQueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ class UAtomicRingBufferQueue : public UQueueObject {
}

value = std::move((*ring_buffer_queue_[head_]));
ring_buffer_queue_[head_].release();
head_ = (head_ + 1) % capacity_;
}
push_cv_.notify_one();
Expand Down

0 comments on commit ddfcf65

Please sign in to comment.