summaryrefslogtreecommitdiff
path: root/node/Peer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'node/Peer.hpp')
-rw-r--r--node/Peer.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/node/Peer.hpp b/node/Peer.hpp
index ae8f1e78..99d3fac2 100644
--- a/node/Peer.hpp
+++ b/node/Peer.hpp
@@ -62,7 +62,9 @@ private:
public:
~Peer() {
Utils::burn(_key,sizeof(_key));
+#if ZT_PROTO_VERSION >= 10
delete _pathChoiceHist;
+#endif
_pathChoiceHist = NULL;
}