From c8f5c48aa8df9c77d65129bb5963735b72ea7e38 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Mon, 28 Jan 2013 04:22:25 -0700 Subject: [PATCH] Fix memory leak in IP address unit test Another failure to call FreeAddrInfo() after calling GetAddrInfo(). Detected by Coverity Scan. Issue 740438. --- src/ip/testAddress.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ip/testAddress.cc b/src/ip/testAddress.cc index c69ab8f7cb..17838b7b36 100644 --- a/src/ip/testAddress.cc +++ b/src/ip/testAddress.cc @@ -714,6 +714,7 @@ testIpAddress::testAddrInfo() CPPUNIT_ASSERT( memcmp( expect->ai_addr, ipval->ai_addr, expect->ai_addrlen ) == 0 ); freeaddrinfo(expect); + anIP.FreeAddrInfo(ipval); } void -- 2.47.2