Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix more memory leaks
authorthiery <thiery@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 7 Dec 2010 14:24:27 +0000 (14:24 +0000)
committerthiery <thiery@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 7 Dec 2010 14:24:27 +0000 (14:24 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9066 48e7efb5-ca39-0410-a469-dd3cf9ba447f

examples/msg/actions/actions.c
src/msg/msg_actions.c
src/surf/surf_routing.c

index 0958e56..4542163 100644 (file)
@@ -518,6 +518,8 @@ static void action_finalize(xbt_dynar_t action)
   process_globals_t globals = (process_globals_t) MSG_process_get_data(MSG_process_self());
   if (globals){
     xbt_dynar_free_container(&(globals->isends));
+    xbt_dynar_free_container(&(globals->irecvs));
+    xbt_dynar_free_container(&(globals->tasks));
     free(globals);
   }
 }
index 685eaa8..6410d22 100644 (file)
@@ -98,6 +98,7 @@ static int MSG_action_runner(int argc, char *argv[])
       }
       xbt_dynar_free(&evt);
     }
+    fclose(fp);
 
   }
   return 0;
index bf93694..ba89057 100644 (file)
@@ -1308,7 +1308,7 @@ static void model_full_set_route(routing_component_t rc, const char *src,
                          (void*)link_route_to_test,
                          (int_f_cpvoid_cpvoid_t) surf_pointer_resource_cmp),
                          "The route between \"%s\" and \"%s\" already exists", src,dst);
-               xbt_free(link_route_to_test);
+               xbt_dynar_free(&link_route_to_test);
        }
        else
        {