Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Apply manually the changes which would result in regenerating with the cvs flexml...
[simgrid.git] / src / gras / Virtu / rl_process.c
index d96c2a3..ae191c3 100644 (file)
@@ -7,6 +7,7 @@
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
+#include "gras_modinter.h" /* module initialization interface */
 #include "gras/Virtu/virtu_rl.h"
 
 XBT_LOG_EXTERNAL_CATEGORY(process);
@@ -22,6 +23,7 @@ xbt_error_t gras_process_init() {
 }
 xbt_error_t gras_process_exit() {
   gras_procdata_exit();
+  free(_gras_procdata);
   return no_error;
 }
 
@@ -30,7 +32,7 @@ xbt_error_t gras_process_exit() {
  * **************************************************************************/
 
 gras_procdata_t *gras_procdata_get(void) {
-  xbt_assert0(_gras_procdata,"Run gras_process_init!");
+  xbt_assert0(_gras_procdata,"Run gras_process_init (ie, gras_init)!");
 
   return _gras_procdata;
 }