Skip to content

Commit

Permalink
fix: condition if-statement
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas authored Sep 18, 2024
1 parent 360b325 commit 93b526d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/network/message/outputmessage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ OutputMessage_ptr OutputMessagePool::getOutputMessage() {
}

return { rawPtr, [&allocator](OutputMessage*&ptr) mutable {
if (ptr) {
if (ptr != nullptr) {
ptr->~OutputMessage();
allocator.deallocate(ptr, 1);
}
Expand Down

0 comments on commit 93b526d

Please sign in to comment.