]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librados: fix a leak
authorYehuda Sadeh <yehuda.sadeh@dreamhost.com>
Tue, 31 Jan 2012 00:48:15 +0000 (16:48 -0800)
committerYehuda Sadeh <yehuda.sadeh@dreamhost.com>
Tue, 31 Jan 2012 00:48:15 +0000 (16:48 -0800)
watch notification message was missing a ->put()

Signed-off-by: Yehuda Sadeh <yehuda.sadeh@dreamhost.com>
src/librados.cc

index d9cd8adb38c3af577c45157295d7d979dff80896..9e728982a4cb292a0f09d1f07d1a2ef6835c797b 100644 (file)
@@ -2439,6 +2439,8 @@ void librados::RadosClient::watch_notify(MWatchNotify *m)
     return;
 
   wc->notify(this, m);
+
+  m->put();
 }
 
 int librados::RadosClient::watch(IoCtxImpl& io, const object_t& oid, uint64_t ver,