mirror of
https://github.com/ceph/ceph
synced 2025-01-19 01:21:49 +00:00
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>
This commit is contained in:
parent
b5031a2233
commit
c0e2371284
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user