From 1268c4dc7de06c85ec05d62655b96bae55771a18 Mon Sep 17 00:00:00 2001 From: bdemsky Date: Tue, 26 Oct 2010 22:32:23 +0000 Subject: [PATCH] really bad bug --- Robust/src/Runtime/mlp_runtime.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Robust/src/Runtime/mlp_runtime.h b/Robust/src/Runtime/mlp_runtime.h index 1512bdb8..da272560 100644 --- a/Robust/src/Runtime/mlp_runtime.h +++ b/Robust/src/Runtime/mlp_runtime.h @@ -274,12 +274,12 @@ static inline void RELEASE_REFERENCE_TO( SESEcommon* seseRec ) { static MemPool* taskpoolcreate( int itemSize ) { MemPool* p = RUNMALLOC( sizeof( MemPool ) ); - SESEcommon *c = (SESEcommon *) p; + SESEcommon *c = (SESEcommon *) RUNMALLOC(itemSize); pthread_cond_init( &(c->runningChildrenCond), NULL ); pthread_mutex_init( &(c->lock), NULL ); p->itemSize = itemSize; - p->head = RUNMALLOC( itemSize ); + p->head = (void *)c; p->head->next = NULL; p->tail = p->head; return p; -- 2.34.1