[Nice] [nice/master] free addrinfo on the numb server

Youness Alaoui youness.alaoui at collabora.co.uk
Wed Nov 12 17:00:49 PST 2008


---
 stun/tests/test-turn.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/stun/tests/test-turn.c b/stun/tests/test-turn.c
index aaecea4..758ae6c 100644
--- a/stun/tests/test-turn.c
+++ b/stun/tests/test-turn.c
@@ -171,10 +171,7 @@ static void numb (void)
   assert (val == 0 || (errno == EINPROGRESS));
 #endif
 
-  memset (&hints, 0, sizeof (hints));
-  hints.ai_family = AF_UNSPEC;
-  hints.ai_socktype = SOCK_DGRAM;
-  hints.ai_flags = 0;
+  freeaddrinfo (res);
 
 
   /* Send old-style response */
-- 
1.5.6.5




More information about the Nice mailing list