I am doing analysis on memory leak for the create/delete configuration and get-config opertation.
What I observed is when deleting the interface in node, the below memory leak was observed and 67 bytes of memory are lost when committed the deletion of a single interface.
From the call stack below, it goes to confd lib call stack ,
Could you please give your comments why this leak was observed and how to
resolve this memory leak?
==18304== 67 bytes in 1 blocks are definitely lost in loss record 20,085 of 34,746
==18304== at 0x4005C18: malloc (vg_replace_malloc.c:270)
==18304== by 0x43ADBA5: wrapped_malloc (WrappedAllocator.c++:190)
==18304== by 0x9724A3E: malloc (MallocLeakDetect.c++:112)
==18304== by 0x44A4F3B7: strdup (strdup.c:42)
==18304== by 0x4034BEF: _confd_vset_error (confd_lib.c:3231)
==18304== by 0x40388BD: confd_trans_seterr (confd_lib.c:5834)
==18304== by 0x966EF35: ConfDInterface::RemoveElement(confd_trans_ctx*, confd_hkeypath*, session&) (ConfDInterface.c++:2416)