]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: do not leak Session* ref in _send_boot() 2190/head
authorSage Weil <sage@redhat.com>
Fri, 1 Aug 2014 03:59:49 +0000 (20:59 -0700)
committerSage Weil <sage@redhat.com>
Fri, 1 Aug 2014 03:59:49 +0000 (20:59 -0700)
commit04037ef9dd8c69d450431f3299d957383368e524
tree5599946ae9da0302e2b588ee40eb0e37ab76b3a0
parentfe99b2531786e4c9dd6151cce7c18114f066d71d
osd: do not leak Session* ref in _send_boot()

The get_priv() call returns a ref; make sure we drop it if it exists.
This doesn't happen on every run because usually it is NULL and we take
the other path; it's only after the OSD has been marked down that we reach
the second path.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSD.cc