diff options
author | Louis Scalbert <louis.scalbert@6wind.com> | 2023-04-24 18:19:03 +0200 |
---|---|---|
committer | Louis Scalbert <louis.scalbert@6wind.com> | 2023-04-27 15:37:36 +0200 |
commit | 87acad869813e8248bdde876b96a67b31a565fbb (patch) | |
tree | 865833bc8dab0314f4137c92fb62e2d21393b562 /lib/flex_algo.h | |
parent | lib: dispatch flex_algo_delete() (diff) | |
download | frr-87acad869813e8248bdde876b96a67b31a565fbb.tar.xz frr-87acad869813e8248bdde876b96a67b31a565fbb.zip |
isisd, lib: fix flex-algo database memory leak at area destruction
Free flex-algorithm database memory when an IS-IS area is destroyed.
Fixes: 735fb37db1 ("lib: add library for igp flexible-algorithm")
Fixes: 7f198e063c ("isisd: add isis flex-algo base interface")
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
Diffstat (limited to 'lib/flex_algo.h')
-rw-r--r-- | lib/flex_algo.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/flex_algo.h b/lib/flex_algo.h index e012f4686..9fc285160 100644 --- a/lib/flex_algo.h +++ b/lib/flex_algo.h @@ -107,6 +107,7 @@ struct flex_algos { */ struct flex_algos *flex_algos_alloc(flex_algo_allocator_t allocator, flex_algo_releaser_t releaser); +void flex_algos_free(struct flex_algos *flex_algos); struct flex_algo *flex_algo_alloc(struct flex_algos *flex_algos, uint8_t algorithm, void *arg); struct flex_algo *flex_algo_lookup(struct flex_algos *flex_algos, |