Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Fix cleanup of info->types
authorGabriel Corona <gabriel.corona@loria.fr>
Thu, 20 Mar 2014 11:38:00 +0000 (12:38 +0100)
committerGabriel Corona <gabriel.corona@loria.fr>
Thu, 20 Mar 2014 11:47:57 +0000 (12:47 +0100)
src/mc/mc_global.c

index 0eeddef..0c6c04d 100644 (file)
@@ -193,7 +193,7 @@ mc_object_info_t MC_new_object_info(void) {
   mc_object_info_t res = xbt_new0(s_mc_object_info_t, 1);
   res->subprograms = xbt_dict_new_homogeneous((void (*)(void*))mc_frame_free);
   res->global_variables = xbt_dynar_new(sizeof(dw_variable_t), dw_variable_free_voidp);
-  res->types = xbt_dict_new_homogeneous(NULL);
+  res->types = xbt_dict_new_homogeneous((void (*)(void*))dw_type_free);
   res->full_types_by_name = xbt_dict_new_homogeneous(NULL);
   return res;
 }