]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crypto: cleanup NSPR in main thread 14801/head
authorKefu Chai <kchai@redhat.com>
Wed, 26 Apr 2017 07:56:32 +0000 (15:56 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 27 Apr 2017 04:14:04 +0000 (12:14 +0800)
commitb22977dfd27967def1b6d4caf83694a2264fc825
treed6858501d0697ffa2af77341916e1968bda811cf
parent024314e9128793667dc4d080c19a365091d4af5b
crypto: cleanup NSPR in main thread

quote from nspr's header file

```
 * Perform a graceful shutdown of NSPR.  PR_Cleanup() may be called by
 * the primordial thread near the end of the main() function.
```

this helps to silence some warnings from valgrind. but it does not hurt
in practice, because the process is about to die. and the freed memory
chunks are only allocated once in NSPR.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/ceph_context.cc
src/common/ceph_crypto.cc
src/common/ceph_crypto.h
src/test/ceph_crypto.cc