]> git.puffer.fish Git - mirror/frr.git/commit
isisd: Fix memory leak on shutdown 7379/head
authorDonald Sharp <sharpd@nvidia.com>
Fri, 23 Oct 2020 00:51:24 +0000 (20:51 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 23 Oct 2020 15:36:38 +0000 (11:36 -0400)
commite76731cf04187575982f2dbbe1dc59a8aa438eed
treed165a2c4fc1a8c8fafad431f1cb6f3322e3d42a7
parent1e4fa7f46cc1c2d1fcb5c427c2d284bd1110a406
isisd: Fix memory leak on shutdown

==935465== 40 bytes in 1 blocks are definitely lost in loss record 71 of 546
==935465==    at 0x483AB65: calloc (vg_replace_malloc.c:760)
==935465==    by 0x48D6611: qcalloc (memory.c:110)
==935465==    by 0x48CFE02: list_new (linklist.c:32)
==935465==    by 0x15DBF0: isis_new (isisd.c:213)
==935465==    by 0x15DAC4: isis_global_instance_create (isisd.c:179)
==935465==    by 0x121892: main (isis_main.c:264)
==935465== 64 (40 direct, 24 indirect) bytes in 1 blocks are definitely lost in loss record 101 of 546
==935465==    at 0x483AB65: calloc (vg_replace_malloc.c:760)
==935465==    by 0x48D6611: qcalloc (memory.c:110)
==935465==    by 0x48CFE02: list_new (linklist.c:32)
==935465==    by 0x15DBE3: isis_new (isisd.c:212)
==935465==    by 0x15DAC4: isis_global_instance_create (isisd.c:179)
==935465==    by 0x121892: main (isis_main.c:264)

On isis shutdown we are seeing the above memory leaks.  Modify
the code to start cleaning this up.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
isisd/isisd.c