]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: clean up leak on old/unneeded peering messages
authorGreg Farnum <gregory.farnum@dreamhost.com>
Thu, 8 Sep 2011 16:49:11 +0000 (09:49 -0700)
committerGreg Farnum <gregory.farnum@dreamhost.com>
Thu, 8 Sep 2011 16:51:10 +0000 (09:51 -0700)
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
src/osd/OSD.cc

index 90397f428509e35d1629e2b295dbb0c5eb150392..99e97e353532f1bbc9187a3761cd60bad48334d3 100644 (file)
@@ -4134,6 +4134,8 @@ void OSD::handle_pg_notify(MOSDPGNotify *m)
     if (pg->old_peering_msg(m->get_epoch())) {
       dout(10) << "ignoring old peering message " << *m << dendl;
       pg->unlock();
+      delete t;
+      delete fin;
       continue;
     }
 
@@ -4179,6 +4181,8 @@ void OSD::handle_pg_log(MOSDPGLog *m)
   if (pg->old_peering_msg(m->get_epoch())) {
     dout(10) << "ignoring old peering message " << *m << dendl;
     pg->unlock();
+    delete t;
+    delete fin;
     return;
   }
 
@@ -4224,6 +4228,8 @@ void OSD::handle_pg_info(MOSDPGInfo *m)
     if (pg->old_peering_msg(m->get_epoch())) {
       dout(10) << "ignoring old peering message " << *m << dendl;
       pg->unlock();
+      delete t;
+      delete fin;
       continue;
     }