mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-24 21:50:42 +00:00
Merge pull request #6681 from opensourcerouting/rmap-desc-leak-fix
lib: fix route map description memory leak
This commit is contained in:
commit
4bcc4993b1
@ -971,6 +971,9 @@ void route_map_index_delete(struct route_map_index *index, int notify)
|
||||
zlog_debug("Deleting route-map %s sequence %d",
|
||||
index->map->name, index->pref);
|
||||
|
||||
/* Free route map entry description. */
|
||||
XFREE(MTYPE_TMP, index->description);
|
||||
|
||||
/* Free route map northbound hook contexts. */
|
||||
while ((rhc = TAILQ_FIRST(&index->rhclist)) != NULL)
|
||||
routemap_hook_context_free(rhc);
|
||||
|
Loading…
Reference in New Issue
Block a user