Closed
Description
This is based on FRR Master as of 2020-01-07, Git SHA dba6ddd
Issue was found during ANVL OSPF test in Zebra Daemon
ERROR: LeakSanitizer: detected memory leaks
Direct leak of 16416 byte(s) in 1 object(s) allocated from:
#0 0x7f08e3ca8602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0x7f08e389c4b0 in qmalloc lib/memory.c:105
#2 0x7f08e38e87b4 in stream_new lib/stream.c:106
#3 0x481d7f in _zebra_ptm_bfd_client_deregister zebra/zebra_ptm.c:1348
#4 0x4e7b84 in hook_call_zserv_client_close zebra/zserv.c:544
#5 0x4e7b84 in zserv_client_free zebra/zserv.c:560
#6 0x4e7b84 in zserv_close_client zebra/zserv.c:625
#7 0x4e7fe0 in zserv_handle_client_fail zebra/zserv.c:638
#8 0x7f08e3901995 in thread_call lib/thread.c:1549
#9 0x7f08e38937d7 in frr_run lib/libfrr.c:1093
#10 0x41686e in main zebra/main.c:470
#11 0x7f08e2fe682f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
Direct leak of 16416 byte(s) in 1 object(s) allocated from:
#0 0x7f08e3ca8602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0x7f08e389c4b0 in qmalloc lib/memory.c:105
#2 0x7f08e38e87b4 in stream_new lib/stream.c:106
#3 0x481efe in _zebra_ptm_reroute zebra/zebra_ptm.c:1411
#4 0x4f7dc9 in zserv_handle_commands zebra/zapi_msg.c:2642
#5 0x4e6d32 in zserv_process_messages zebra/zserv.c:517
#6 0x7f08e3901995 in thread_call lib/thread.c:1549
#7 0x7f08e38937d7 in frr_run lib/libfrr.c:1093
#8 0x41686e in main zebra/main.c:470
#9 0x7f08e2fe682f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
SUMMARY: AddressSanitizer: 32832 byte(s) leaked in 2 allocation(s).