From 4cd9e0f41bb753545511b1672640911f228e67f1 Mon Sep 17 00:00:00 2001 From: Milek7 Date: Tue, 13 Apr 2021 17:12:56 +0200 Subject: [PATCH] Fix: Add virtual destructor to link graph Path. Classes derived from Path were freed through base class pointer, but no virtual destructor was present. --- src/linkgraph/linkgraphjob.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/linkgraph/linkgraphjob.h b/src/linkgraph/linkgraphjob.h index caeacd19de..4913b5a357 100644 --- a/src/linkgraph/linkgraphjob.h +++ b/src/linkgraph/linkgraphjob.h @@ -367,6 +367,7 @@ public: static Path *invalid_path; Path(NodeID n, bool source = false); + virtual ~Path() = default; /** Get the node this leg passes. */ inline NodeID GetNode() const { return this->node; }