diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2020-02-05 05:49:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-05 05:49:08 +0100 |
commit | ecaeb3b697bfcd46fe4ee7a519fdebb69c7318f9 (patch) | |
tree | d631ffc455be41355b1f6f763958a4cfbcf4a5d5 /bgpd/bgp_zebra.c | |
parent | Merge pull request #5760 from ton31337/fix/shorthand_operator (diff) | |
parent | *: remove null check before XFREE (diff) | |
download | frr-ecaeb3b697bfcd46fe4ee7a519fdebb69c7318f9.tar.xz frr-ecaeb3b697bfcd46fe4ee7a519fdebb69c7318f9.zip |
Merge pull request #5750 from qlyoung/fix-null-after-xfree
*: don't null after XFREE; XFREE does this itself
Diffstat (limited to 'bgpd/bgp_zebra.c')
-rw-r--r-- | bgpd/bgp_zebra.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c index ccb888cf5..0e7a361ed 100644 --- a/bgpd/bgp_zebra.c +++ b/bgpd/bgp_zebra.c @@ -1779,7 +1779,6 @@ int bgp_redistribute_unset(struct bgp *bgp, afi_t afi, int type, /* Unset route-map. */ XFREE(MTYPE_ROUTE_MAP_NAME, red->rmap.name); route_map_counter_decrement(red->rmap.map); - red->rmap.name = NULL; red->rmap.map = NULL; /* Unset metric. */ |