]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
common: fix uninitialized nref in crimson CephContext
authorAlexander Indenbaum <aindenba@redhat.com>
Sat, 21 Feb 2026 19:13:50 +0000 (21:13 +0200)
committerAlexander Indenbaum <aindenba@redhat.com>
Mon, 23 Feb 2026 11:17:51 +0000 (13:17 +0200)
commit34039ef016d9fa884a494ada3170c8b07fd31ff8
tree9b88c648293c02a051c404cc8152f3da18322fa9
parentf43baba6c93df236813743d4ca4f2b0093fed3f2
common: fix uninitialized nref in crimson CephContext

Initialize nref(1) in the constructor so put() correctly releases
the context. LeakSanitizer reports a leak.

Signed-off-by: Alexander Indenbaum <aindenba@redhat.com>
src/common/ceph_context.h