]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/ConfigMap: fix stray option leak 40298/head
authorSage Weil <sage@newdream.net>
Tue, 16 Feb 2021 21:50:18 +0000 (16:50 -0500)
committerKefu Chai <kchai@redhat.com>
Mon, 22 Mar 2021 05:51:31 +0000 (13:51 +0800)
commit579eced9054f3134e127d4ec24f2376201441729
treeafb61f54153d5a57775fc6e75b0f117e969137fa
parent224e0301584f0a9e039bb1daa77ff87b085be6bc
mon/ConfigMap: fix stray option leak

The const Option* needs to remain alive only until the next clear().  Keep
the reference in ConfigMap and clean it up then.

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 9397a46aec88e287d56a6286ed4319f65d9c1f31)

Fixes: https://tracker.ceph.com/issues/48381
Conflicts:
src/mon/ConfigMap.h: trivial resolution
src/mon/ConfigMap.h
src/mon/ConfigMonitor.cc