libDtSearch: Coverity 86579
authorPeter Howkins <flibble@users.sf.net>
Mon, 2 Jul 2018 22:11:36 +0000 (23:11 +0100)
committerPeter Howkins <flibble@users.sf.net>
Mon, 2 Jul 2018 22:11:36 +0000 (23:11 +0100)
cde/lib/DtSearch/raima/alloc.c

index c48b8aa2e48227dd4853748925bbddc92b1f8e27..7303d317cf63bf2ae679bf9d2c1134f7d5cfaacf 100644 (file)
@@ -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;
    }