Skip to content

Commit

Permalink
osd: fix memory leak in C_SetManifestRefCountDone
Browse files Browse the repository at this point in the history
Signed-off-by: Myoungwon Oh <[email protected]>
  • Loading branch information
myoungwon committed Dec 2, 2020
1 parent b7c09a8 commit 29d442b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/osd/PrimaryLogPG.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3221,6 +3221,12 @@ struct C_SetManifestRefCountDone : public Context {
}
pg->manifest_ops.erase(it);
cb->complete(r);
cb = nullptr;
}
~C_SetManifestRefCountDone() {
if (cb) {
delete cb;
}
}
};

Expand Down

0 comments on commit 29d442b

Please sign in to comment.