From: Florian Forster Date: Sat, 10 Apr 2010 10:15:00 +0000 (+0200) Subject: pinba plugin: Fix a sever typo. X-Git-Tag: collectd-4.10.0~7^2~2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=abb4b5e082b76c09a8a169ee95b47edd8daf4467;p=collectd.git pinba plugin: Fix a sever typo. --- diff --git a/src/pinba.c b/src/pinba.c index ee790ff5..9697cf27 100644 --- a/src/pinba.c +++ b/src/pinba.c @@ -374,7 +374,7 @@ static pinba_socket_t *pinba_socket_open (const char *node, /* {{{ */ assert (ai_list != NULL); s = malloc (sizeof (*s)); - if (s != NULL) + if (s == NULL) { freeaddrinfo (ai_list); ERROR ("pinba plugin: malloc failed.");