X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=lttv%2Flttv%2Fsync%2Fevent_analysis_chull.c;h=21f288939c2fe1f9408cfb4d466dc22562e187fd;hb=336e21a5943e770da94553fa9559b891e0155da5;hp=154258e00effc5af9369dc13c1c036e2d999125a;hpb=e2793cfa2a24ec3d0fcfb58d7f75dfcf0a79556c;p=lttv.git diff --git a/lttv/lttv/sync/event_analysis_chull.c b/lttv/lttv/sync/event_analysis_chull.c index 154258e0..21f28893 100644 --- a/lttv/lttv/sync/event_analysis_chull.c +++ b/lttv/lttv/sync/event_analysis_chull.c @@ -384,13 +384,15 @@ static void destroyAnalysisCHull(SyncState* const syncState) for (j= 0; j < i; j++) { - // There seems to be a memory leak in glpk, valgrind reports a - // loss (reachable) even if the problem is deleted glp_delete_prob(analysisData->lps[i][j]); } free(analysisData->lps[i]); } free(analysisData->lps); + + /* Be careful, this invalidates all problem objects which still exist. + * Don't keep copies of lps past this point. */ + glp_free_env(); } #endif