Skip to content

Commit

Permalink
ipfix collector was using lot of memory when run on valgrind.
Browse files Browse the repository at this point in the history
The reason being that it does not deallocate the buffer it
recieved for processing.
Close-Bug:1562213

Change-Id: I94266c96b1fe9b7b970d19b7fca761e8cea2d7e1
  • Loading branch information
arvindvis committed May 10, 2016
1 parent 9e7e19b commit e298fc6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/analytics/ipfix_collector.cc
Expand Up @@ -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,
Expand Down

0 comments on commit e298fc6

Please sign in to comment.