we should not increase the ref count when transferring the ownership from a
MessageURef instance to a MessageRef instance.
to address the memory leak introduced by
1f6e66470504fe5aec4cae3fc74d6e9927aae7aa.
Signed-off-by: Amnon Hanuhov <ahanukov@redhat.com>
seastar::future<> SocketConnection::send(MessageURef msg)
{
assert(seastar::this_shard_id() == shard_id());
- return protocol->send(MessageRef{msg.release()});
+ return protocol->send(MessageRef{msg.release(), false});
}
seastar::future<> SocketConnection::send(MessageRef msg)