projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
openldap plugin: malloc + memset -> calloc
[collectd.git]
/
src
/
utils_dns.c
diff --git
a/src/utils_dns.c
b/src/utils_dns.c
index
2c7a59d
..
991d346
100644
(file)
--- a/
src/utils_dns.c
+++ b/
src/utils_dns.c
@@
-209,7
+209,7
@@
static void ignore_list_add (const struct in6_addr *addr)
if (ignore_list_match (addr) != 0)
return;
- new = malloc (sizeof (
ip_list_t
));
+ new = malloc (sizeof (
*new
));
if (new == NULL)
{
perror ("malloc");