aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-light/src/hicn/core/strategy.h
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/core/strategy.h
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/core/strategy.h')
-rw-r--r--hicn-light/src/hicn/core/strategy.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hicn-light/src/hicn/core/strategy.h b/hicn-light/src/hicn/core/strategy.h
index 9ce75c51d..9f1a7dac7 100644
--- a/hicn-light/src/hicn/core/strategy.h
+++ b/hicn-light/src/hicn/core/strategy.h
@@ -59,6 +59,8 @@ typedef struct strategy_entry_s {
int strategy_initialize(strategy_entry_t *entry, const void *forwarder);
+int strategy_finalize(strategy_entry_t *entry);
+
nexthops_t *strategy_lookup_nexthops(strategy_entry_t *entry,
nexthops_t *nexthops,
const msgbuf_t *msgbuf);