diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2020-02-04 13:19:37 -0500 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2020-02-04 13:19:37 -0500 |
| commit | e1b36e132b7eda2d230f2f95945e231df37a42f5 (patch) | |
| tree | 8a40165810e2ddc3f3d3ca0709134554b766b5ca /lib/plist.c | |
| parent | b3ba5dc7fe769f3719b2812e4fdb9f8f8271032d (diff) | |
*: remove null check before XFREE
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/plist.c')
| -rw-r--r-- | lib/plist.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/plist.c b/lib/plist.c index 971fc62164..f6ceba81e8 100644 --- a/lib/plist.c +++ b/lib/plist.c @@ -1092,9 +1092,7 @@ static int vty_prefix_list_desc_unset(struct vty *vty, afi_t afi, return CMD_WARNING_CONFIG_FAILED; } - if (plist->desc) { - XFREE(MTYPE_TMP, plist->desc); - } + XFREE(MTYPE_TMP, plist->desc); if (plist->head == NULL && plist->tail == NULL && plist->desc == NULL) prefix_list_delete(plist); |
