summaryrefslogtreecommitdiffstats
path: root/lib/vty.c
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 /lib/vty.c
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 'lib/vty.c')
-rw-r--r--lib/vty.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/vty.c b/lib/vty.c
index 75e68c033..cf1613385 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -3011,13 +3011,8 @@ void vty_reset(void)
vty_timeout_val = VTY_TIMEOUT_DEFAULT;
- if (vty_accesslist_name) {
- XFREE(MTYPE_VTY, vty_accesslist_name);
- }
-
- if (vty_ipv6_accesslist_name) {
- XFREE(MTYPE_VTY, vty_ipv6_accesslist_name);
- }
+ XFREE(MTYPE_VTY, vty_accesslist_name);
+ XFREE(MTYPE_VTY, vty_ipv6_accesslist_name);
}
static void vty_save_cwd(void)