Skip to content

Commit a75c560

Browse files
authored
Merge pull request ceph#60507 from synarete/ss-cephfs-asyncio-use-after-free-bugfix
client: fix memory leak in Client::CRF_iofinish::complete Reviewed-by: Venky Shankar <[email protected]> Reviewed-by: Dhairya Parmar <[email protected]> Reviewed-by: Patrick Donnelly <[email protected]>
2 parents 9884643 + 6dc7756 commit a75c560

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/client/Client.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,14 +1389,6 @@ class Client : public Dispatcher, public md_config_obs_t {
13891389
void finish(int r) override {
13901390
CRF->finish_io(r);
13911391
}
1392-
1393-
// For _read_async, we may not finish in one go, so be prepared for multiple
1394-
// calls to complete. All the handling though is in C_Read_Finisher.
1395-
void complete(int r) override {
1396-
finish(r);
1397-
if (CRF->iofinished)
1398-
delete this;
1399-
}
14001392
};
14011393

14021394
class C_Read_Sync_NonBlocking : public Context {

0 commit comments

Comments
 (0)