Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
implement gras_procdata_exit to plug the leaks
[simgrid.git] / src / gras / Virtu / process.c
index 93475bf..e46303e 100644 (file)
@@ -37,3 +37,12 @@ gras_procdata_init() {
   TRY(gras_dynar_new(  &(pd->cbl_list),  sizeof(gras_cblist_t *), NULL  ));
   return no_error;
 }
   TRY(gras_dynar_new(  &(pd->cbl_list),  sizeof(gras_cblist_t *), NULL  ));
   return no_error;
 }
+
+void
+gras_procdata_exit() {
+  gras_procdata_t *pd=gras_procdata_get();
+
+  gras_dynar_free(pd->msg_queue);
+  gras_dynar_free(pd->cbl_list);
+}
+