summaryrefslogtreecommitdiffstats
path: root/lib/agentx.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2024-11-17 07:11:26 +0100
committerDaniel Baumann <daniel@debian.org>2024-11-17 07:11:26 +0100
commitd5587ccda8edb748ca8bfd1f0ed92a801ac5bfc6 (patch)
tree705ea89e798053f9c227b85512bc9f5b437b0093 /lib/agentx.c
parentReleasing debian version 10.1.1-3. (diff)
downloadfrr-d5587ccda8edb748ca8bfd1f0ed92a801ac5bfc6.tar.xz
frr-d5587ccda8edb748ca8bfd1f0ed92a801ac5bfc6.zip
Merging upstream version 10.2.
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to 'lib/agentx.c')
-rw-r--r--lib/agentx.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/agentx.c b/lib/agentx.c
index 19f2a6b7..2a3ff235 100644
--- a/lib/agentx.c
+++ b/lib/agentx.c
@@ -377,4 +377,16 @@ void smux_events_update(void)
agentx_events_update();
}
+static void smux_events_delete_thread(void *arg)
+{
+ XFREE(MTYPE_TMP, arg);
+}
+
+void smux_terminate(void)
+{
+ if (events) {
+ events->del = smux_events_delete_thread;
+ list_delete(&events);
+ }
+}
#endif /* SNMP_AGENTX */