From 9253cc0d21f1703014a4ecf215862e5947bee96b Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Mon, 21 Jan 2013 21:36:16 -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 2a87352eb4..34426eaedc 100644 --- a/src/ip/testAddress.cc +++ b/src/ip/testAddress.cc @@ -711,6 +711,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