]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] use freeaddrinfo to free an addrinfo structure, not free.
authorJINMEI Tatuya <jinmei@isc.org>
Wed, 5 Oct 2011 21:39:27 +0000 (14:39 -0700)
committerJINMEI Tatuya <jinmei@isc.org>
Wed, 5 Oct 2011 21:39:27 +0000 (14:39 -0700)
reported by Francis on bind10-dev.  looks okay, directly pushing.

src/lib/asiolink/tests/io_endpoint_unittest.cc

index f0279d18af57803861d5b5754a97b864ceefaa50..c7283ec80da06347534a98f9185ae7337e2827b7 100644 (file)
@@ -219,7 +219,7 @@ sockAddrMatch(const struct sockaddr& actual_sa,
     res->ai_addr->sa_len = actual_sa.sa_len;
 #endif
     EXPECT_EQ(0, memcmp(res->ai_addr, &actual_sa, res->ai_addrlen));
-    free(res);
+    freeaddrinfo(res);
 }
 
 TEST(IOEndpointTest, getSockAddr) {