No need of explicit NULL check before free

Signed-off-by: Maninder Singh <maninder...@samsung.com>
---
 trunk/src/rtld/rtld.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/trunk/src/rtld/rtld.c b/trunk/src/rtld/rtld.c
index 35dfde7..3ed1db3 100644
--- a/trunk/src/rtld/rtld.c
+++ b/trunk/src/rtld/rtld.c
@@ -1270,7 +1270,6 @@ process_one_dso (DSO *dso, int host_paths)
                       (uint32_t) l->l_map_start);
        }
 
-      if (filename)
        free (filename);
 
       cur_dso_ent = cur_dso_ent->next;
-- 
1.7.1

-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to