diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-02-25 21:18:13 +0100 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-02-26 00:00:46 +0100 |
commit | 0a22ddfbb16a61c3e068ea1164e885104366112a (patch) | |
tree | 5aeaef43b3de5ebbdfcf1015421eb48b51a071fb /lib/frr_pthread.c | |
parent | lib: STAILQ_FOREACH_SAFE never gives a null elem (diff) | |
download | frr-0a22ddfbb16a61c3e068ea1164e885104366112a.tar.xz frr-0a22ddfbb16a61c3e068ea1164e885104366112a.zip |
*: remove null check before XFREE
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/frr_pthread.c')
-rw-r--r-- | lib/frr_pthread.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/frr_pthread.c b/lib/frr_pthread.c index d7f655271..2a18e5cfc 100644 --- a/lib/frr_pthread.c +++ b/lib/frr_pthread.c @@ -110,8 +110,7 @@ void frr_pthread_destroy(struct frr_pthread *fpt) pthread_mutex_destroy(&fpt->mtx); pthread_mutex_destroy(fpt->running_cond_mtx); pthread_cond_destroy(fpt->running_cond); - if (fpt->name) - XFREE(MTYPE_FRR_PTHREAD, fpt->name); + XFREE(MTYPE_FRR_PTHREAD, fpt->name); XFREE(MTYPE_PTHREAD_PRIM, fpt->running_cond_mtx); XFREE(MTYPE_PTHREAD_PRIM, fpt->running_cond); XFREE(MTYPE_FRR_PTHREAD, fpt); |