added a CqsDelete(Queue) to free the memory.
[charm.git] / src / conv-core / queueing.c
index a781193a4c7cc2ed9d4b87945c9a2d0954901533..e729c041754252cb5c26c6214d6c186d379672bc 100644 (file)
@@ -239,6 +239,13 @@ Queue CqsCreate(void)
   return q;
 }
 
+void CqsDelete(Queue q)
+{
+  CmiFree(q->negprioq.heap);
+  CmiFree(q->posprioq.heap);
+  CmiFree(q);
+}
+
 unsigned int CqsLength(Queue q)
 {
   return q->length;