From: bdemsky Date: Mon, 19 Nov 2007 21:55:16 +0000 (+0000) Subject: memory leak X-Git-Tag: preEdgeChange~362 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b423898024ce0bb0a72992fae8e59bdba73f35ae;p=IRC.git memory leak --- diff --git a/Robust/src/Runtime/task.c b/Robust/src/Runtime/task.c index 32b81564..61416da0 100644 --- a/Robust/src/Runtime/task.c +++ b/Robust/src/Runtime/task.c @@ -1138,6 +1138,9 @@ void executetasks() { struct ___TagDescriptor___ *tagd=currtpd->parameterArray[slotid]; if (!containstag(parameter, tagd)) { RUNFREE(currtpd->parameterArray); +#ifdef OPTIONAL + RUNFREE(currtpd->failed); +#endif RUNFREE(currtpd); goto newtask; } @@ -1220,6 +1223,9 @@ void executetasks() { freemalloc(); // Free up task parameter descriptor RUNFREE(currtpd->parameterArray); +#ifdef OPTIONAL + RUNFREE(currtpd->failed); +#endif RUNFREE(currtpd); forward=NULL; reverse=NULL;