]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crypto: use NSS_InitContext/NSS_ShutdownContex to avoid memory leak
authorJason Dillaman <dillaman@redhat.com>
Tue, 28 Jul 2015 17:14:29 +0000 (13:14 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 28 Jul 2015 17:16:50 +0000 (13:16 -0400)
commit9fa0112dd9286178da1d76020158503b2062d252
treef229d9eadb9bd61701c5fc0aac62391a188792f1
parente95787216b8c84da98810eb5dccb09941ad9fa2f
crypto: use NSS_InitContext/NSS_ShutdownContex to avoid memory leak

Switched to context-aware NSS init/shutdown functions to avoid conflicts
with parent application.  Use a reference counter to properly shutdown the
NSS crypto library when the last CephContext is destroyed.  This avoids
memory leaks with the NSS library from users of librados.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/common/ceph_context.cc
src/common/ceph_crypto.cc
src/rgw/rgw_main.cc
src/test/librbd/fsx.cc
src/test/librbd/test_main.cc