]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd/crypto: fix memory leak in ShutDownCryptoRequest
authorOr Ozeri <oro@il.ibm.com>
Thu, 25 Nov 2021 13:47:54 +0000 (15:47 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Sun, 13 Feb 2022 15:49:58 +0000 (16:49 +0100)
commit1d8a5e3a5ee0b86abcb694cd96958a4841156b78
treeb055b6bd63566cd28f81ee2d65b6bb3a43d33a6d
parente1dcc9e73501a07fb666ba6bb12462654d24fb76
librbd/crypto: fix memory leak in ShutDownCryptoRequest

If crypto object dispatch does not exist, a context pointer is leaked.
This commit fixes this issue.

Signed-off-by: Or Ozeri <oro@il.ibm.com>
(cherry picked from commit 044280dcbe808d76cb2c97e1457685d76e8c869a)
src/librbd/crypto/ShutDownCryptoRequest.cc