Fix memory leak.

Signed-off-by: Patrick Marchand Latifi <[EMAIL PROTECTED]>
---

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

diff --git a/test/dapltest/cmd/dapl_netaddr.c b/test/dapltest/cmd/dapl_netaddr.c
index 0b16303..a306335 100644
--- a/test/dapltest/cmd/dapl_netaddr.c
+++ b/test/dapltest/cmd/dapl_netaddr.c
@@ -137,6 +137,7 @@ DT_NetAddrLookupHostAddress (DAT_IA_ADDRESS_PTR     
to_netaddr,
                    inet_ntoa(((struct sockaddr_in 
*)target->ai_addr)->sin_addr));
 
     *to_netaddr = * ((DAT_IA_ADDRESS_PTR) target->ai_addr);
+    freeaddrinfo(target);
 
     return ( DAT_TRUE );
 }

_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to