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:
Samuel Just 2012-12-20 13:29:09 -08:00
parent b5031a2233
commit c0e2371284

View File

@ -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()