No need of NULL check before free
Signed-off-by: Maninder Singh <[email protected]>
Signed-off-by: Akhilesh Kumar <[email protected]>
---
utils/ffsb-6.0-rc2/ffsb_fc.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/utils/ffsb-6.0-rc2/ffsb_fc.c b/utils/ffsb-6.0-rc2/ffsb_fc.c
index 60b6313..c383a6a 100644
--- a/utils/ffsb-6.0-rc2/ffsb_fc.c
+++ b/utils/ffsb-6.0-rc2/ffsb_fc.c
@@ -99,8 +99,7 @@ void fc_set_num_totalthreads(ffsb_config_t * fc, int num)
void fc_set_callout(ffsb_config_t * fc, char *callout)
{
- if (fc->callout)
- free(fc->callout);
+ free(fc->callout);
fc->callout = ffsb_strdup(callout);
}
--
1.7.9.5
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list