summaryrefslogtreecommitdiff
path: root/zebra/rtadv.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-12-12 13:29:47 -0500
committerDonald Sharp <sharpd@nvidia.com>2023-12-12 13:29:47 -0500
commit8fcacf680389778e29acf68adbec9a7021217a22 (patch)
treed96af678a6af2afc320784a59269dc6ed6de0fbc /zebra/rtadv.h
parent9393d36690ccfff3904597eac76be59567651424 (diff)
zebra: Don't leak memory in rtadv.c code on shutdown
The adata variable was being leaked on shutdown since it was calloc'ed. There is no need to make this dynamic memory. Just choose a size and use that. Add a bit of code to ensure that if it's not large enough, it will just stop and the developer will fix it. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/rtadv.h')
-rw-r--r--zebra/rtadv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/rtadv.h b/zebra/rtadv.h
index 1ec376a106..9d358d4b0d 100644
--- a/zebra/rtadv.h
+++ b/zebra/rtadv.h
@@ -435,6 +435,7 @@ extern void zebra_interface_radv_enable(ZAPI_HANDLER_ARGS);
extern uint32_t rtadv_get_interfaces_configured_from_bgp(void);
extern bool rtadv_compiled_in(void);
+extern void rtadv_init(void);
#ifdef __cplusplus
}