From aa1bfc0ab33ff7b8863a3623c599c015263bf1d2 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Mon, 2 Jul 2018 23:11:36 +0100 Subject: [PATCH] libDtSearch: Coverity 86579 --- cde/lib/DtSearch/raima/alloc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cde/lib/DtSearch/raima/alloc.c b/cde/lib/DtSearch/raima/alloc.c index c48b8aa2..7303d317 100644 --- a/cde/lib/DtSearch/raima/alloc.c +++ b/cde/lib/DtSearch/raima/alloc.c @@ -181,8 +181,7 @@ void ll_free(llist *ll) if ( curr->ptr == NULL ) break; bytecpy(&next, &curr->ptr->next, sizeof(LL_P)); - if ( curr != NULL ) - d_free((CHAR_P *)curr); + d_free((CHAR_P *)curr); bytecpy(&free, &next, sizeof(LL_P)); curr = &free; } -- 2.25.1