diff options
author | Samuel Just <sam.just@inktank.com> | 2012-12-20 13:29:09 -0800 |
---|---|---|
committer | Samuel Just <sam.just@inktank.com> | 2012-12-20 13:29:14 -0800 |
commit | c0e2371284a51b7d7023c25837bc684dcbacf1d4 (patch) | |
tree | 3cb64fbfcebfd2656a4a45438cd926fe764a3b97 | |
parent | b5031a223352901ad8f32e38f3b0a6f3cc03ec5a (diff) | |
download | ceph-c0e2371284a51b7d7023c25837bc684dcbacf1d4.tar.gz |
ReplicatedPG::remove_notify : don't leak the notify object
Following remove_notify, there are no other references to
notif, delete it.
Signed-off-by: Samuel Just <sam.just@inktank.com>
-rw-r--r-- | src/osd/ReplicatedPG.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 0d07f7279c9..612dc4a8677 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -1608,6 +1608,7 @@ void ReplicatedPG::remove_notify(ObjectContext *obc, Watch::Notification *notif) obc->notifs.erase(niter); put_object_context(obc); + delete notif; } void ReplicatedPG::remove_watchers_and_notifies() |