diff --git a/lib/routemap.c b/lib/routemap.c index 3d69a3495a27..7dcf6e3b4789 100644 --- a/lib/routemap.c +++ b/lib/routemap.c @@ -971,6 +971,10 @@ 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. */ + if (index->description) + XFREE(MTYPE_TMP, index->description); + /* Free route map northbound hook contexts. */ while ((rhc = TAILQ_FIRST(&index->rhclist)) != NULL) routemap_hook_context_free(rhc);