From ab98f1ec9f6599cc2db2d9cb8823862feb7ba62a Mon Sep 17 00:00:00 2001
From: jzhou <jzhou>
Date: Mon, 7 Dec 2009 18:44:50 +0000
Subject: [PATCH] fix a small bug

---
 Robust/src/Runtime/multicoretask.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Robust/src/Runtime/multicoretask.c b/Robust/src/Runtime/multicoretask.c
index b84de5c2..7770bcd0 100644
--- a/Robust/src/Runtime/multicoretask.c
+++ b/Robust/src/Runtime/multicoretask.c
@@ -167,7 +167,9 @@ void disruntimedata() {
 	freeRuntimeHash(objRedirectLockTbl);
 	RUNFREE(locktable.bucket);
 #endif
-	genfreehashtable(activetasks);
+	if(activetasks != NULL) {
+		genfreehashtable(activetasks);
+	}
 	if(currtpd != NULL) {
 		RUNFREE(currtpd->parameterArray);
 		RUNFREE(currtpd);
-- 
2.34.1