-
- INFO0("Clean native world");
- /* cleanup native stuff */
- rv = MSG_OK != MSG_clean();
+ xbt_dynar_free(&hosts);
+ XBT_INFO("Clean native world");
+}
+JNIEXPORT void JNICALL
+ JNICALL Java_org_simgrid_msg_Msg_clean(JNIEnv * env, jclass cls)
+{
+ /* cleanup native stuff. Calling it is ... useless since leaking memory at the end of the simulation is a non-issue */
+ MSG_error_t rv = MSG_OK != MSG_clean();