QA corner: memleak in daemon listen address code.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Sat, 9 Feb 2013 22:01:31 +0000 (23:01 +0100)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Tue, 26 Feb 2013 14:26:30 +0000 (15:26 +0100)
org.glite.lb.client/src/notification.c
org.glite.lb.harvester/src/harvester.c
org.glite.lb.logger/src/logd_proto.c
org.glite.lbjp-common.server-bones/src/srvbones.c

index b20663d..b811f0d 100644 (file)
@@ -109,7 +109,6 @@ static int daemon_listen(edg_wll_Context ctx, const char *name, char *port, int
        gaie = getaddrinfo (name, port, &hints, &ai);
        if (gaie != 0 || ai == NULL) {
                hints.ai_family = 0;
-               gaie = getaddrinfo (NULL, port, &hints, &ai);
        }
 
        gaie = getaddrinfo (name, port, &hints, &ai);
index 1ea3ea2..afbffee 100644 (file)
@@ -1648,7 +1648,6 @@ static int daemon_listen(thread_t *t, const char *name, char *port, int *conn_ou
        gaie = getaddrinfo (name, port, &hints, &ai);
        if (gaie != 0 || ai == NULL) {
                hints.ai_family = 0;
-               gaie = getaddrinfo (NULL, port, &hints, &ai);
        }
 
        gaie = getaddrinfo (name, port, &hints, &ai);
index f8b80b7..00ee06b 100644 (file)
@@ -148,7 +148,6 @@ static int daemon_listen(const char *name, char *port, int *conn_out) {
        gaie = getaddrinfo (name, port, &hints, &ai);
        if (gaie != 0 || ai == NULL) {
                hints.ai_family = 0;
-               gaie = getaddrinfo (NULL, port, &hints, &ai);
        }
 
        gaie = getaddrinfo (name, port, &hints, &ai);
index 7b4814a..bf7f199 100644 (file)
@@ -341,7 +341,6 @@ int glite_srvbones_daemon_listen(const char *name, char *port, int *conn_out) {
        gaie = getaddrinfo (name, port, &hints, &ai);
        if (gaie != 0 || ai == NULL) {
                hints.ai_family = 0;
-               gaie = getaddrinfo (NULL, port, &hints, &ai);
        }
 
        gaie = getaddrinfo (name, port, &hints, &ai);