From: Peter Howkins Date: Mon, 2 Jul 2018 22:11:36 +0000 (+0100) Subject: libDtSearch: Coverity 86579 X-Git-Tag: 2.3.0a~249 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=aa1bfc0ab33ff7b8863a3623c599c015263bf1d2;p=oweals%2Fcde.git libDtSearch: Coverity 86579 --- 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; }