]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/net: Set add_ref to false when creating a MessageRef in conn::send() 41322/head
authorAmnon Hanuhov <ahanukov@redhat.com>
Tue, 11 May 2021 12:07:35 +0000 (15:07 +0300)
committerKefu Chai <kchai@redhat.com>
Fri, 14 May 2021 03:55:42 +0000 (11:55 +0800)
commit2ea985325fc608d30cefda7777cd5c84a34514ad
treeb2641190fda404f9bab671985dc1428b6c123701
parent961afd428e22345f54200c16279a08b8dd996087
crimson/net: Set add_ref to false when creating a MessageRef in conn::send()

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>
src/crimson/net/SocketConnection.cc