diff options
| author | Russ White <russ@riw.us> | 2018-08-04 11:30:15 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-04 11:30:15 -0400 |
| commit | 8669b45833da9bb1fc18bbcf3f1ac156da170dfa (patch) | |
| tree | 7e2ca90a82b14899bb5eb8fba33ea5344ee200bb /lib/routemap.c | |
| parent | c8f70278bd8de9cbac8f7db8eba0d69091149a9f (diff) | |
| parent | 8619629ada22ed19eb95d491799cc03a13d6d8aa (diff) | |
Merge pull request #2778 from donaldsharp/pim_leaks_and_invalids
Pim leaks and invalids
Diffstat (limited to 'lib/routemap.c')
| -rw-r--r-- | lib/routemap.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/routemap.c b/lib/routemap.c index 6c4585365a..4e8682f312 100644 --- a/lib/routemap.c +++ b/lib/routemap.c @@ -2741,6 +2741,15 @@ void route_map_finish(void) vector_free(route_set_vec); route_set_vec = NULL; + /* + * All protocols are setting these to NULL + * by default on shutdown( route_map_finish ) + * Why are we making them do this work? + */ + route_map_master.add_hook = NULL; + route_map_master.delete_hook = NULL; + route_map_master.event_hook = NULL; + /* cleanup route_map */ while (route_map_master.head) { struct route_map *map = route_map_master.head; |
