ceph/ceph — pull request #2145 by liewegas (2014-07-25 20:16:13+00:00)
Title: common/RefCountedObject: fix use-after-free in debug print

We could race with another thread that deletes this right after we call
dec(). Our access of cct would then become a use-after-free. Valgrind
managed to turn this up.

Copy it into a local variable before the dec() to be safe!

Signed-off-by: Sage Weil