syncState->graphsDir= NULL;
}
+ syncState->reductionData= NULL;
+ syncState->reductionModule= NULL;
+
syncState->analysisData= NULL;
result= g_queue_find_custom(&analysisModules, "eval",
&gcfCompareAnalysis);
SyncState* syncState;
struct timeval endTime;
struct rusage endUsage;
- int retval;
tracesetChainState= g_hash_table_lookup(tracesetChainStates, traceSetContext);
syncState= tracesetChainState->syncState;
- freeAllFactors(syncState->processingModule->finalizeProcessing(syncState));
+ freeAllFactors(syncState->processingModule->finalizeProcessing(syncState),
+ syncState->traceNb);
// Write graphs file
if (optionEvalGraphs)
if (fclose(syncState->graphsStream) != 0)
{
- g_error(strerror(errno));
+ g_error("%s", strerror(errno));
}
}
{
syncState->analysisModule->destroyAnalysis(syncState);
}
+ if (syncState->reductionModule != NULL)
+ {
+ syncState->reductionModule->destroyReduction(syncState);
+ }
free(syncState);
gettimeofday(&endTime, 0);
- retval= getrusage(RUSAGE_SELF, &endUsage);
+ getrusage(RUSAGE_SELF, &endUsage);
timeDiff(&endTime, &tracesetChainState->startTime);
timeDiff(&endUsage.ru_utime, &tracesetChainState->startUsage.ru_utime);