]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osdc: fix a memory leak in C_TwoContexts 3890/head
authorXiong Yiliang <xiongyiliang@xunlei.com>
Fri, 6 Mar 2015 04:46:49 +0000 (12:46 +0800)
committerXiong Yiliang <xiongyiliang@xunlei.com>
Fri, 6 Mar 2015 08:30:19 +0000 (16:30 +0800)
commitf33cdbe485d0e4b78a46657bfcb8d5c02d24be69
tree9906cd80577ee10fe46c8116df4d706535df3b7d
parentb3462c2e859f40c1615bf184c5b0ad53b0373d7f
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>
src/osdc/Objecter.h