Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
plug two memleaks
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 22 Mar 2017 01:29:29 +0000 (02:29 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 22 Mar 2017 01:36:10 +0000 (02:36 +0100)
src/bindings/java/jmsg_vm.cpp
src/simix/smx_global.cpp

index 7a58af6..f34af4f 100644 (file)
@@ -95,6 +95,7 @@ JNIEXPORT jobjectArray JNICALL Java_org_simgrid_msg_VM_all(JNIEnv* env, jclass c
       vms.push_back(jvm);
     }
   }
+  xbt_dynar_free(&hosts);
 
   vms.shrink_to_fit();
   int count = vms.size();
index d4c4ad6..dfcf0ba 100644 (file)
@@ -302,6 +302,9 @@ void SIMIX_clean()
 
   xbt_os_mutex_destroy(simix_global->mutex);
   simix_global->mutex = nullptr;
+#if HAVE_MC
+  xbt_dynar_free(&simix_global->actors_vector);
+#endif
 
   /* Let's free maestro now */
   delete simix_global->maestro_process->context;