diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2020-02-04 19:19:37 +0100 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2020-02-04 19:19:37 +0100 |
commit | e1b36e132b7eda2d230f2f95945e231df37a42f5 (patch) | |
tree | 8a40165810e2ddc3f3d3ca0709134554b766b5ca /lib/vty.c | |
parent | *: don't null after XFREE; XFREE does this itself (diff) | |
download | frr-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.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -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) |