From f6665f4c39a88f3f422c45dfb4287f3ccd73d72a Mon Sep 17 00:00:00 2001 From: mquinson Date: Fri, 12 Mar 2010 17:09:31 +0000 Subject: [PATCH] Warn when there is some remaining actions in the system we're freeing because it reveals bugs on interface code git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7237 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/surf/maxmin.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/surf/maxmin.c b/src/surf/maxmin.c index 1a03fbf4d5..e0d093bc1e 100644 --- a/src/surf/maxmin.c +++ b/src/surf/maxmin.c @@ -66,8 +66,11 @@ void lmm_system_free(lmm_system_t sys) lmm_variable_t var = NULL; lmm_constraint_t cnst = NULL; - while ((var = extract_variable(sys))) + while ((var = extract_variable(sys))) { + WARN2("Variable %p (%d) still in LMM system when freing it: this may be a bug", + var,var->id_int); lmm_var_free(sys, var); + } while ((cnst = extract_constraint(sys))) lmm_cnst_free(sys, cnst); -- 2.20.1