mirror of
https://git.proxmox.com/git/mirror_frr
synced 2026-01-25 01:03:34 +00:00
ospf6d: Free up list memory
OSPFv3 snmp code creates a list but never deletes the actual list. Do so. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
f8ca1bb935
commit
710a61d57c
@ -1267,8 +1267,6 @@ static uint8_t *ospfv3NbrEntry(struct variable *v, oid *name, size_t *length,
|
||||
} else {
|
||||
/* We build a sorted list of interfaces */
|
||||
ifslist = list_new();
|
||||
if (!ifslist)
|
||||
return NULL;
|
||||
ifslist->cmp = (int (*)(void *, void *))if_icmp_func;
|
||||
FOR_ALL_INTERFACES (vrf, iif)
|
||||
listnode_add_sort(ifslist, iif);
|
||||
@ -1296,6 +1294,7 @@ static uint8_t *ospfv3NbrEntry(struct variable *v, oid *name, size_t *length,
|
||||
}
|
||||
|
||||
list_delete_all_node(ifslist);
|
||||
list_delete(&ifslist);
|
||||
}
|
||||
|
||||
if (!oi || !on)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user