]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
NULL out g_ceph_context when deleting it
authorDaniel Gryniewicz <dang@redhat.com>
Wed, 17 Jun 2020 14:21:04 +0000 (10:21 -0400)
committerDaniel Gryniewicz <dang@redhat.com>
Fri, 17 Jul 2020 16:05:49 +0000 (12:05 -0400)
commitede7561f4fe9e638211a6aa2e5baef3098008f34
treec815a575a124b8287a01040813c4a78bdc340022
parent99f7c4aa1286edfea6961b92bb44bb8fe22bd599
NULL out g_ceph_context when deleting it

This avoids a use-after-free when there is a crash on shutdown (or when
something like ASAN triggers an ABORT on leak).

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
src/common/ceph_context.cc