diff options
author | Mark Stapp <mjs@voltanet.io> | 2020-11-18 23:31:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-18 23:31:03 +0100 |
commit | abed797ef5c4ff35538d1b418b34cce7d79b008b (patch) | |
tree | 454093cf5ba291919b6ce323e502bb371ccf189a /ospf6d | |
parent | Merge pull request #7552 from volta-networks/fix_reload_l2pvn (diff) | |
parent | bgpd: Prevent ecommunity_ecom2str memory leak (diff) | |
download | frr-abed797ef5c4ff35538d1b418b34cce7d79b008b.tar.xz frr-abed797ef5c4ff35538d1b418b34cce7d79b008b.zip |
Merge pull request #7556 from donaldsharp/memory_shenanigans
Memory shenanigans
Diffstat (limited to 'ospf6d')
-rw-r--r-- | ospf6d/ospf6_snmp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ospf6d/ospf6_snmp.c b/ospf6d/ospf6_snmp.c index 3aeba3b60..1836dc206 100644 --- a/ospf6d/ospf6_snmp.c +++ b/ospf6d/ospf6_snmp.c @@ -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) |