]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd/crypto: fix memory leak in openssl/DataCryptor
authorOr Ozeri <oro@il.ibm.com>
Thu, 25 Nov 2021 13:49:33 +0000 (15:49 +0200)
committerOr Ozeri <oro@il.ibm.com>
Sun, 28 Nov 2021 11:06:34 +0000 (13:06 +0200)
commit9992bbaa5303521fafe28a7d5d0581afa7b32da7
tree431af6f8c9696fbf977b7165572db1535036e988
parent044280dcbe808d76cb2c97e1457685d76e8c869a
librbd/crypto: fix memory leak in openssl/DataCryptor

Re-initializing the same datacryptor, causes a memory leak of the old encryption key.
This commit fixes this issue.

Signed-off-by: Or Ozeri <oro@il.ibm.com>
src/librbd/crypto/openssl/DataCryptor.cc
src/librbd/crypto/openssl/DataCryptor.h