]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
neorados: fixed valgrind memory leaks and errors
authorJason Dillaman <dillaman@redhat.com>
Mon, 6 Jul 2020 18:38:58 +0000 (14:38 -0400)
committerJason Dillaman <dillaman@redhat.com>
Mon, 6 Jul 2020 18:57:33 +0000 (14:57 -0400)
commit32e2e907e52f083a7203fdeb8308e8e842a67a51
tree61606c27252e1de6a1a2c9a5fad7ec9a4bf686f8
parenta5441010ed5611fae64ac8cf84a7ff9609e8939c
neorados: fixed valgrind memory leaks and errors

Keep the CephContext wrapped in an intrusive pointer to keep the
reference counting functional. Ensure all the messenger clients
(mon, mgr, and objecter) are shut down prior to destruction.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/neorados/RADOS.cc
src/neorados/RADOSImpl.cc
src/neorados/RADOSImpl.h