aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-light/src/hicn/test/test-strategy-best-path.cc
diff options
context:
space:
mode:
authorEnrico Loparco (eloparco) <eloparco@cisco.com>2022-09-14 15:57:25 +0000
committerEnrico Loparco (eloparco) <eloparco@cisco.com>2022-09-14 15:57:25 +0000
commit2c5b861c8055ef68038273110ea81975e1c6b425 (patch)
tree204481342c99c31c0e4a47df92dd840bc9cc15fa /hicn-light/src/hicn/test/test-strategy-best-path.cc
parentab38321508d886f0acd535f0f5f07a3d44e29591 (diff)
fix(strategy): fix memory leaks detected by valgrind in unit tests
Ref: HICN-785 Signed-off-by: Enrico Loparco (eloparco) <eloparco@cisco.com> Change-Id: I0102bdba4257b891fc6843d42e6eccc5e48687dc
Diffstat (limited to 'hicn-light/src/hicn/test/test-strategy-best-path.cc')
-rw-r--r--hicn-light/src/hicn/test/test-strategy-best-path.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/hicn-light/src/hicn/test/test-strategy-best-path.cc b/hicn-light/src/hicn/test/test-strategy-best-path.cc
index 327c47144..f909c15f2 100644
--- a/hicn-light/src/hicn/test/test-strategy-best-path.cc
+++ b/hicn-light/src/hicn/test/test-strategy-best-path.cc
@@ -66,7 +66,7 @@ class StrategyBestpathTest : public ::testing::Test {
ticks_ = ticks_now();
}
- virtual ~StrategyBestpathTest() {}
+ virtual ~StrategyBestpathTest() { strategy_finalize(&entry); }
strategy_entry_t entry;
nexthops_t available_nexthops_;