aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2017-06-28 23:14:48 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2017-08-14 17:45:15 +0200
commitb109a1c3962a9f45fb5819afd69c7caaf78eb35e (patch)
tree79b63a973802d150122f7b980530798e75b4745d /src/net.cpp
parent140de14a12228cf7af44f59f40a937c2910a0158 (diff)
Remove redundant nullptr checks before deallocation
Rationale: * delete ptr is a no-op if ptr is nullptr
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 599a6128fa..c5bca8add9 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -2753,8 +2753,7 @@ CNode::~CNode()
{
CloseSocket(hSocket);
- if (pfilter)
- delete pfilter;
+ delete pfilter;
}
void CNode::AskFor(const CInv& inv)