summaryrefslogtreecommitdiff
path: root/lib/if_rmap.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2020-02-05 01:49:08 -0300
committerGitHub <noreply@github.com>2020-02-05 01:49:08 -0300
commitecaeb3b697bfcd46fe4ee7a519fdebb69c7318f9 (patch)
treed631ffc455be41355b1f6f763958a4cfbcf4a5d5 /lib/if_rmap.c
parent8f6ebcbeb2455855a0e9dd2946d48e8db23f7192 (diff)
parente1b36e132b7eda2d230f2f95945e231df37a42f5 (diff)
Merge pull request #5750 from qlyoung/fix-null-after-xfree
*: don't null after XFREE; XFREE does this itself
Diffstat (limited to 'lib/if_rmap.c')
-rw-r--r--lib/if_rmap.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/if_rmap.c b/lib/if_rmap.c
index ca6f512ec6..1973d40be4 100644
--- a/lib/if_rmap.c
+++ b/lib/if_rmap.c
@@ -164,7 +164,6 @@ static int if_rmap_unset(struct if_rmap_ctx *ctx,
return 0;
XFREE(MTYPE_IF_RMAP_NAME, if_rmap->routemap[IF_RMAP_IN]);
- if_rmap->routemap[IF_RMAP_IN] = NULL;
}
if (type == IF_RMAP_OUT) {
@@ -174,7 +173,6 @@ static int if_rmap_unset(struct if_rmap_ctx *ctx,
return 0;
XFREE(MTYPE_IF_RMAP_NAME, if_rmap->routemap[IF_RMAP_OUT]);
- if_rmap->routemap[IF_RMAP_OUT] = NULL;
}
if (ctx->if_rmap_delete_hook)