projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
treewide: cleanup malloc calls
[collectd.git]
/
src
/
daemon
/
utils_ignorelist.c
diff --git
a/src/daemon/utils_ignorelist.c
b/src/daemon/utils_ignorelist.c
index
1268838
..
011b3d3
100644
(file)
--- a/
src/daemon/utils_ignorelist.c
+++ b/
src/daemon/utils_ignorelist.c
@@
-134,7
+134,7
@@
static int ignorelist_append_string(ignorelist_t *il, const char *entry)
ignorelist_item_t *new;
/* create new entry */
- if ((new = malloc(sizeof
(ignorelist_item_t
))) == NULL )
+ if ((new = malloc(sizeof
(*new
))) == NULL )
{
ERROR ("cannot allocate new entry");
return (1);