From 0d00e1956497968cb1f85c18bb29260dbfa6a88a Mon Sep 17 00:00:00 2001 From: arvindvis Date: Tue, 10 May 2016 11:18:10 -0700 Subject: [PATCH] ipfix collector was using lot of memory when run on valgrind. The reason being that it does not deallocate the buffer it recieved for processing. Close-Bug:1562213 Change-Id: I94266c96b1fe9b7b970d19b7fca761e8cea2d7e1 --- src/analytics/ipfix_collector.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/analytics/ipfix_collector.cc b/src/analytics/ipfix_collector.cc index bb6cb31e9a0..189e2e29c6e 100644 --- a/src/analytics/ipfix_collector.cc +++ b/src/analytics/ipfix_collector.cc @@ -32,9 +32,8 @@ void IpfixCollector::HandleReceive(boost::asio::const_buffer& buffer, const boost::system::error_code& error) { if (!error) { ProcessIpfixPacket(buffer, bytes_transferred, remote_endpoint); - } else { - DeallocateBuffer(buffer); } + DeallocateBuffer(buffer); } IpfixCollector::IpfixCollector(EventManager* evm,