]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osdc: fix a memory leak in C_TwoContexts 3918/head
authorXiong Yiliang <xiongyiliang@xunlei.com>
Fri, 6 Mar 2015 04:46:49 +0000 (12:46 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 10 Mar 2015 06:34:56 +0000 (14:34 +0800)
commit5b58ef1569576ccf973ea416873085d1f7eba547
tree492ca309e8e2a96e7c08915cbb0c9c3958d4d816
parent955bd114fc321ea3affb110bddf974e1d931bced
osdc: fix a memory leak in C_TwoContexts

If an ObjectOperation op is cancelled, its destructor is
called and each Context object in out_handler is deleted.
A C_TwoContexts object can be one of these handlers. The
two contexts wrapped in C_TwoContexts must be deleted
as well.

Signed-off-by: Xiong Yiliang <xiongyiliang@xunlei.com>
(cherry picked from commit f33cdbe485d0e4b78a46657bfcb8d5c02d24be69)
src/osdc/Objecter.h