projects
/
oweals
/
cde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0917ee
)
libDtSearch: Coverity 86579
author
Peter Howkins
<flibble@users.sf.net>
Mon, 2 Jul 2018 22:11:36 +0000
(23:11 +0100)
committer
Peter Howkins
<flibble@users.sf.net>
Mon, 2 Jul 2018 22:11:36 +0000
(23:11 +0100)
cde/lib/DtSearch/raima/alloc.c
patch
|
blob
|
history
diff --git
a/cde/lib/DtSearch/raima/alloc.c
b/cde/lib/DtSearch/raima/alloc.c
index c48b8aa2e48227dd4853748925bbddc92b1f8e27..7303d317cf63bf2ae679bf9d2c1134f7d5cfaacf 100644
(file)
--- 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;
}