diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-02-01 10:52:21 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-01 10:52:21 -0500 |
| commit | 5a2bd83d9de7bdd528b4be78f337f9c7a196c70b (patch) | |
| tree | 477672d8900b8fcba04bd36f7b5122242d9ac876 /lib/plist.c | |
| parent | 681ca8cc528a1aec1e451b9ae860d3825f999052 (diff) | |
| parent | d24736fa17f9970dd58c5e6417bf3a5444011f5e (diff) | |
Merge pull request #146 from opensourcerouting/assorted-stable
assorted fixes for stable/2.0
Diffstat (limited to 'lib/plist.c')
| -rw-r--r-- | lib/plist.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/plist.c b/lib/plist.c index 2b93d880f6..6f19565688 100644 --- a/lib/plist.c +++ b/lib/plist.c @@ -328,6 +328,9 @@ prefix_list_get (afi_t afi, int orf, const char *name) return plist; } +static void prefix_list_trie_del (struct prefix_list *plist, + struct prefix_list_entry *pentry); + /* Delete prefix-list from prefix_list_master and free it. */ static void prefix_list_delete (struct prefix_list *plist) @@ -341,6 +344,7 @@ prefix_list_delete (struct prefix_list *plist) for (pentry = plist->head; pentry; pentry = next) { next = pentry->next; + prefix_list_trie_del (plist, pentry); prefix_list_entry_free (pentry); plist->count--; } |
