Commit 4881b502 authored by Michael Beck's avatar Michael Beck
Browse files

Fixed the fix for the memory leak

[r13488]
parent 6c3b7b42
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment