diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2020-02-03 17:22:13 +0100 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2020-02-03 17:22:13 +0100 |
commit | b3ba5dc7fe769f3719b2812e4fdb9f8f8271032d (patch) | |
tree | 326b49289dd6b1e83c4ff98899983dd4972afff8 /bgpd/bgp_dump.c | |
parent | Merge pull request #5669 from donaldsharp/nhg_ip (diff) | |
download | frr-b3ba5dc7fe769f3719b2812e4fdb9f8f8271032d.tar.xz frr-b3ba5dc7fe769f3719b2812e4fdb9f8f8271032d.zip |
*: don't null after XFREE; XFREE does this itself
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_dump.c')
-rw-r--r-- | bgpd/bgp_dump.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/bgpd/bgp_dump.c b/bgpd/bgp_dump.c index f850cb49c..e9711f5b9 100644 --- a/bgpd/bgp_dump.c +++ b/bgpd/bgp_dump.c @@ -669,7 +669,6 @@ static int bgp_dump_unset(struct bgp_dump *bgp_dump) /* Removing file name. */ if (bgp_dump->filename) { XFREE(MTYPE_BGP_DUMP_STR, bgp_dump->filename); - bgp_dump->filename = NULL; } /* Closing file. */ @@ -689,7 +688,6 @@ static int bgp_dump_unset(struct bgp_dump *bgp_dump) /* Removing interval string. */ if (bgp_dump->interval_str) { XFREE(MTYPE_BGP_DUMP_STR, bgp_dump->interval_str); - bgp_dump->interval_str = NULL; } return CMD_SUCCESS; |