aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2017-11-09 13:38:33 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2017-11-09 13:38:48 +0100
commitef3758d1ef73f83f7646363f748010cdc5c2d7f2 (patch)
treed4fe48971da5f847303e902478518b38506cf761 /src/net.cpp
parent0ecc6305f464ff998f580c9ebd616ab42b4160bf (diff)
parentb109a1c3962a9f45fb5819afd69c7caaf78eb35e (diff)
Merge #10696: Remove redundant nullptr checks before deallocation
b109a1c Remove redundant nullptr checks before deallocation (practicalswift) Pull request description: Rationale: * `delete ptr` is a no-op if `ptr` is `nullptr` Tree-SHA512: c98ce769125c4912186a8403cc08a59cfba85b7141af645c709b4c4eb90dd9cbdd6ed8076d50099d1e4ec2bf75917d1af6844082ec42bbb4d94d229a710e051c
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 935cb81901..d5bd4c162b 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -2778,8 +2778,7 @@ CNode::~CNode()
{
CloseSocket(hSocket);
- if (pfilter)
- delete pfilter;
+ delete pfilter;
}
void CNode::AskFor(const CInv& inv)