mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
Remove redundant nullptr checks before deallocation
Rationale: * delete ptr is a no-op if ptr is nullptr
This commit is contained in:
@@ -2753,8 +2753,7 @@ CNode::~CNode()
|
||||
{
|
||||
CloseSocket(hSocket);
|
||||
|
||||
if (pfilter)
|
||||
delete pfilter;
|
||||
delete pfilter;
|
||||
}
|
||||
|
||||
void CNode::AskFor(const CInv& inv)
|
||||
|
||||
Reference in New Issue
Block a user