From: Michael Beck Date: Thu, 26 Apr 2007 15:18:58 +0000 (+0000) Subject: Fixed the fix for the memory leak X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=4881b50207e092572f1421f78cdc12bb14794806;p=libfirm Fixed the fix for the memory leak [r13488] --- diff --git a/ir/ana/execfreq.c b/ir/ana/execfreq.c index eafdba815..d2b9d8538 100644 --- a/ir/ana/execfreq.c +++ b/ir/ana/execfreq.c @@ -367,15 +367,15 @@ compute_execfreq(ir_graph * irg, double loop_weight) #ifdef USE_GSL gsl_vector_free(x); #endif - free(matrix); - free(rhs); - memset(&ef->hook, 0, sizeof(ef->hook)); ef->hook.context = ef; ef->hook.hook._hook_node_info = exec_freq_node_info; register_hook(hook_node_info, &ef->hook); } + free(matrix); + free(rhs); + return ef; }