[ofa-general] [PATCH 2/6] [DAPL v2] fix memory leak

Patrick Marchand Latifi patrick.latifi at qlogic.com
Tue Feb 19 03:19:22 PST 2008


Fix memory leak

Signed-off-by: Patrick Marchand Latifi <patrick.latifi at qlogic.com>
---

 test/dtest/dtest.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/test/dtest/dtest.c b/test/dtest/dtest.c
index 57b5790..fa3b9a8 100755
--- a/test/dtest/dtest.c
+++ b/test/dtest/dtest.c
@@ -909,6 +909,7 @@ connect_ep( char *hostname, DAT_CONN_QUAL conn_id )
                (rval >> 16) & 0xff, (rval >> 24) & 0xff, conn_id);
 
        remote_addr = *((DAT_IA_ADDRESS_PTR)target->ai_addr);
+       freeaddrinfo(target);
 
        LOGPRINTF("%d Connecting to server\n",getpid());
        ret = dat_ep_connect(   h_ep,




More information about the general mailing list