summaryrefslogtreecommitdiffstats
path: root/lib/module.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/module.c')
-rw-r--r--lib/module.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/module.c b/lib/module.c
index af7d20c3..9d178bb0 100644
--- a/lib/module.c
+++ b/lib/module.c
@@ -202,3 +202,15 @@ void frrmod_unload(struct frrmod_runtime *module)
{
}
#endif
+
+void frrmod_terminate(void)
+{
+ struct frrmod_runtime *rtinfo = frrmod_list;
+
+ while (rtinfo) {
+ XFREE(MTYPE_MODULE_LOADNAME, rtinfo->load_name);
+ XFREE(MTYPE_MODULE_LOADARGS, rtinfo->load_args);
+
+ rtinfo = rtinfo->next;
+ }
+}