Skip to content

Commit

Permalink
Fix heap-use-after-free
Browse files Browse the repository at this point in the history
  • Loading branch information
FooBarWidget committed Oct 13, 2024
1 parent 0ef9917 commit a1b63b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/agent/Core/ApplicationPool/Process.h
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,9 @@ class Process {
}

void destroySelf() const {
Context *context = getContext();
this->~Process();
LockGuard l(getContext()->memoryManagementSyncher);
LockGuard l(context->memoryManagementSyncher);
getContext()->processObjectPool.free(const_cast<Process *>(this));
}

Expand Down

0 comments on commit a1b63b6

Please sign in to comment.