summaryrefslogtreecommitdiffstats
path: root/ospf6d
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2020-11-18 23:31:03 +0100
committerGitHub <noreply@github.com>2020-11-18 23:31:03 +0100
commitabed797ef5c4ff35538d1b418b34cce7d79b008b (patch)
tree454093cf5ba291919b6ce323e502bb371ccf189a /ospf6d
parentMerge pull request #7552 from volta-networks/fix_reload_l2pvn (diff)
parentbgpd: Prevent ecommunity_ecom2str memory leak (diff)
downloadfrr-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.c3
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)