summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e96afed)
raw | patch | inline | side by side (parent: e96afed)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 4 Dec 2015 18:02:32 +0000 (19:02 +0100) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 4 Dec 2015 18:02:32 +0000 (19:02 +0100) |
CID #38039
src/libcollectdclient/network.c | patch | blob | history |
index 0539cd0c05266a9965ac522e4599b5fd5bf07bb4..7b98497c5fb8a6082c384e5a20d971b423963899 100644 (file)
return (0);
close (srv->fd);
+ srv->fd = -1;
free (srv->sa);
srv->sa = NULL;
srv->sa_len = 0;
next = srv->next;
- if (srv->fd >= 0)
- {
- close (srv->fd);
- srv->fd = -1;
- }
-
free (srv->node);
free (srv->service);
free (srv->username);