Skip to content

Commit

Permalink
fix: use-after-free when remove pipeline but not clear flusher pointer (
Browse files Browse the repository at this point in the history
  • Loading branch information
catdogpandas authored Nov 6, 2024
1 parent f117670 commit 67e0d7b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/pipeline/Pipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -431,9 +431,7 @@ void Pipeline::Stop(bool isRemoving) {
ProcessQueueManager::GetInstance()->DisablePop(mName, isRemoving);
WaitAllItemsInProcessFinished();

if (!isRemoving) {
FlushBatch();
}
FlushBatch();

if (!mGoPipelineWithoutInput.isNull()) {
// Go pipeline `Stop` will stop and delete
Expand Down

0 comments on commit 67e0d7b

Please sign in to comment.