Memory leak with net-snmp agent v3 ?

Vincent Gilson via Net-snmp-coders <[email protected]> Fri, 16 Feb 2024 11:18:06 +0000
Newsgroups gmane.network.net-snmp.devel
Message-ID <CWXP123MB51487F0836464D20739B6B68F14C2@CWXP123MB5148.GBRP123.PROD.OUTLOOK.COM>
Hi,

I managed to do a secure DTLS comm between my laptop (snmpget) and my embedded device net-snmp agent.

But I noticed there's somewhere a memory leak on the Agent (embedded device) side : I see some 12KB amount of memory taken by the agent each time it successfully handles such request, and it seems to never be released/freed.

(( As it's huge, I tried to disabled the logging system with --disable-debugging on configure script, but it changes nothing ))

I don't absolutely know where to look at into the code...

Does this ring a bell to anyone ?
Thank you !

--> Here's my configure options
./configure --prefix=$(INSTALL_PREFIX) --host=$(HOST) \
  --disable-applications --enable-debugging --disable-embedded-perl --without-perl-modules \
  --enable-reentrant \
  --with-cc=$(CC) --with-linkcc=$(CC) --with-ar=$(AR) --with-ldflags="$(LDFLAGS)" --with-cflags="$(CFLAGS_EXT)" \
  --with-openssl=$(LIB_DIRS) \
  --without-rpm \
  --with-logfile="/tmp/var/snmpd.log" \
  --with-default-snmp-version="3" \
  --with-transports="UDP,TCP,DTLSUDP,TLSTCP" --with-security-modules="usm,tsm" \
 --with-persistent-directory="/var/net-snmp" \
  --enable-shared=yes --enable-static=no --enable-tagCC-libtool

_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders