summaryrefslogtreecommitdiffstats
path: root/ripngd
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2020-02-04 19:19:37 +0100
committerQuentin Young <qlyoung@cumulusnetworks.com>2020-02-04 19:19:37 +0100
commite1b36e132b7eda2d230f2f95945e231df37a42f5 (patch)
tree8a40165810e2ddc3f3d3ca0709134554b766b5ca /ripngd
parent*: don't null after XFREE; XFREE does this itself (diff)
downloadfrr-e1b36e132b7eda2d230f2f95945e231df37a42f5.tar.xz
frr-e1b36e132b7eda2d230f2f95945e231df37a42f5.zip
*: remove null check before XFREE
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'ripngd')
-rw-r--r--ripngd/ripngd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ripngd/ripngd.c b/ripngd/ripngd.c
index ad2ddd0db..f8d7dc968 100644
--- a/ripngd/ripngd.c
+++ b/ripngd/ripngd.c
@@ -2804,8 +2804,7 @@ static int ripng_vrf_enable(struct vrf *vrf)
running_config->version++;
}
}
- if (old_vrf_name)
- XFREE(MTYPE_RIPNG_VRF_NAME, old_vrf_name);
+ XFREE(MTYPE_RIPNG_VRF_NAME, old_vrf_name);
}
if (ripng->enabled)