diff options
author | Louis Scalbert <louis.scalbert@6wind.com> | 2023-04-25 13:08:21 +0200 |
---|---|---|
committer | Louis Scalbert <louis.scalbert@6wind.com> | 2023-04-27 15:37:42 +0200 |
commit | a44681a7938de9e9ff2196f2ec316f04729f7fd5 (patch) | |
tree | 013c0bd364270449f6c83553bdb78d7781b8a604 /isisd | |
parent | isisd, lib: fix flex-algo database memory leak at area destruction (diff) | |
download | frr-a44681a7938de9e9ff2196f2ec316f04729f7fd5.tar.xz frr-a44681a7938de9e9ff2196f2ec316f04729f7fd5.zip |
isisd: fix flex-algo data memory leak at algorithm removal
Fix a flex-algo data memory leak when a specific algorithm is removed.
Fixes: 7f198e063c ("isisd: add isis flex-algo base interface")
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
Diffstat (limited to 'isisd')
-rw-r--r-- | isisd/isis_flex_algo.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/isisd/isis_flex_algo.c b/isisd/isis_flex_algo.c index 0efc519ea..db6fc348e 100644 --- a/isisd/isis_flex_algo.c +++ b/isisd/isis_flex_algo.c @@ -70,6 +70,7 @@ void isis_flex_algo_data_free(void *voiddata) if (data->spftree[tree][level - 1]) isis_spftree_del( data->spftree[tree][level - 1]); + XFREE(MTYPE_FLEX_ALGO, data); } static struct isis_router_cap_fad * |