X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_dns.c;h=991d346a4e4d034dade4423ea3ec9776747d28a4;hb=db35efb33e81d0a013e09a8a6ffa362ad5962f7c;hp=2c7a59d343fb938ea7017c162317791830dbf646;hpb=43ef00c0eb99991902d3c9a5fbe582cde049b055;p=collectd.git diff --git a/src/utils_dns.c b/src/utils_dns.c index 2c7a59d3..991d346a 100644 --- 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");