Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: [OMPI devel] [PATCH] OSC/RDMA: Add a missing OBJ_DESTRUCT
From: Guillaume Thouvenin (guillaume.thouvenin_at_[hidden])
Date: 2010-12-13 08:40:53


Hello,

 In function ompi_osc_rdma_passive_unlock_complete(), an object
copy_unlock_acks was built but it is never destroyed. The following
patch adds its destruction.

 Tested on Open MPI v1.5

Regards,
Guillaume

---
diff --git a/ompi/mca/osc/rdma/osc_rdma_sync.c b/ompi/mca/osc/rdma/osc_rdma_sync.c
--- a/ompi/mca/osc/rdma/osc_rdma_sync.c
+++ b/ompi/mca/osc/rdma/osc_rdma_sync.c
@@ -745,6 +745,8 @@ ompi_osc_rdma_passive_unlock_complete(om
         OBJ_RELEASE(new_pending);
     }
 
+    OBJ_DESTRUCT(&copy_unlock_acks);
+
     /* if we were really unlocked, see if we have another lock request
        we can satisfy */
     OPAL_THREAD_LOCK(&(module->m_lock));