From 7e4a6e8a49a9c22d7dab5e87071b518dff184c66 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sun, 8 Sep 2019 18:14:13 +0200 Subject: [PATCH] test-runner: Remove pointless NULL check before calling l_free --- tools/test-runner.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/test-runner.c b/tools/test-runner.c index 2a442af3..b1877b31 100644 --- a/tools/test-runner.c +++ b/tools/test-runner.c @@ -1468,8 +1468,7 @@ static pid_t start_iwd(const char *config_dir, struct l_queue *wiphy_list, l_strv_free(envp); - if (iwd_phys) - l_free(iwd_phys); + l_free(iwd_phys); return ret; }