]> git.puffer.fish Git - matthieu/frr.git/commit
ospfd: Memory Leak seen at show_ip_ospf_neighbor_all_common.
authorMobashshera Rasool <mrasool@vmware.com>
Fri, 3 Sep 2021 11:06:15 +0000 (04:06 -0700)
committermergify-bot <noreply@mergify.io>
Fri, 3 Sep 2021 14:29:41 +0000 (14:29 +0000)
commitcb64e508b49df569e9492d043a982765f07ec001
treed9ef91e83b55ca4c6d64ff9146df229d24e512e3
parentf3de9e72f38c77a5dd0a79da5efa0044aadec4a0
ospfd: Memory Leak seen at show_ip_ospf_neighbor_all_common.

Problem Statement:
==================
Memory Leak seen at  show_ip_ospf_neighbor_all_common (ospf_vty.c:4635)

RCA:
=================
In function show_ip_ospf_neighbor_all_common, one child json object is not
 added to the parent child object when there is no nbma neighbor. Hence
 the memory leak.

Fix:
=================
Add the child object to the parent json object.

Fixes: #9548
Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
(cherry picked from commit 6f3e19b736b5e7cfaf6ef5514d74358a8de182a3)
ospfd/ospf_vty.c