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 /bgpd/bgp_filter.c | |
| parent | b3ba5dc7fe769f3719b2812e4fdb9f8f8271032d (diff) | |
*: remove null check before XFREE
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_filter.c')
| -rw-r--r-- | bgpd/bgp_filter.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bgpd/bgp_filter.c b/bgpd/bgp_filter.c index a3c86c7eaf..a03551e79d 100644 --- a/bgpd/bgp_filter.c +++ b/bgpd/bgp_filter.c @@ -168,9 +168,7 @@ static struct as_list *as_list_new(void) static void as_list_free(struct as_list *aslist) { - if (aslist->name) { - XFREE(MTYPE_AS_STR, aslist->name); - } + XFREE(MTYPE_AS_STR, aslist->name); XFREE(MTYPE_AS_LIST, aslist); } |
