diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2020-02-03 17:22:13 +0100 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2020-02-03 17:22:13 +0100 |
commit | b3ba5dc7fe769f3719b2812e4fdb9f8f8271032d (patch) | |
tree | 326b49289dd6b1e83c4ff98899983dd4972afff8 /lib/distribute.c | |
parent | Merge pull request #5669 from donaldsharp/nhg_ip (diff) | |
download | frr-b3ba5dc7fe769f3719b2812e4fdb9f8f8271032d.tar.xz frr-b3ba5dc7fe769f3719b2812e4fdb9f8f8271032d.zip |
*: don't null after XFREE; XFREE does this itself
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/distribute.c')
-rw-r--r-- | lib/distribute.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/distribute.c b/lib/distribute.c index 2aa6b927f..3ea60c877 100644 --- a/lib/distribute.c +++ b/lib/distribute.c @@ -186,7 +186,6 @@ static int distribute_list_unset(struct distribute_ctx *ctx, return 0; XFREE(MTYPE_DISTRIBUTE_NAME, dist->list[type]); - dist->list[type] = NULL; /* Apply this distribute-list to the interface. */ (ctx->distribute_delete_hook)(ctx, dist); @@ -232,7 +231,6 @@ static int distribute_list_prefix_unset(struct distribute_ctx *ctx, return 0; XFREE(MTYPE_DISTRIBUTE_NAME, dist->prefix[type]); - dist->prefix[type] = NULL; /* Apply this distribute-list to the interface. */ (ctx->distribute_delete_hook)(ctx, dist); |