
Hi,
below is a very simple program which simply initializes libsmi and afterwards cleans up again.
#include <smi.h>
int main(int argc, char **argv) { smiInit(NULL);
smiExit(); return 0; }
Running this program with valgrind on an Intel Linux box reveals that this program leaks some memory. It seems that smiExit() does not cleanup all memory that got allocated.
44 bytes in 1 blocks are definitely lost in loss record 1 of 1 at 0x401E88E: calloc (vg_replace_malloc.c:279) by 0x402D949: smiMalloc (util.c:88) by 0x4028026: addNode (data.c:1029) by 0x402973A: smiInitData (data.c:3363) by 0x402EB5D: smiInit (smi.c:208) by 0x804847B: main (in /tmp/aa)
It is not a big deal, still I thought I at least document the issue on this mailing list. ;-)
/js
participants (1)
-
Juergen Schoenwaelder