]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
lldpd: fix leak in levent_snmp_read by cleaning up netsnmp_large_fd_set
authorJoshua Rogers <MegaManSec@users.noreply.github.com>
Sun, 26 Oct 2025 04:03:20 +0000 (12:03 +0800)
committerVincent Bernat <vincent@bernat.ch>
Sun, 26 Oct 2025 08:00:08 +0000 (09:00 +0100)
src/daemon/event.c

index fd48785deffdbdee1b61e4bcf05e3a5a9c00fcc5..ac80aee35935414693fe2ece4ba67cb4812ce664 100644 (file)
@@ -103,6 +103,7 @@ levent_snmp_read(evutil_socket_t fd, short what, void *arg)
        NETSNMP_LARGE_FD_ZERO(&fdset);
        NETSNMP_LARGE_FD_SET(fd, &fdset);
        snmp_read2(&fdset);
+       netsnmp_large_fd_set_cleanup(&fdset);
        levent_snmp_update(cfg);
 }