Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fixed typo in documentation of surf_routing.hpp
[simgrid.git] / src / surf / network_ib.cpp
index f19aa4b..9c9854c 100644 (file)
@@ -51,7 +51,7 @@ static void IB_action_init_callback(NetworkActionPtr action,RoutingEdgePtr src,
     xbt_die("could not find dst node active comms !");  
  // act_dst->rate=rate;
   
-  ((NetworkIBModel*)surf_network_model)->active_comms[action]=make_pair<IBNode*,IBNode*>(act_src, act_dst);
+  ((NetworkIBModel*)surf_network_model)->active_comms[action]=make_pair(act_src, act_dst);
   //post the action in the second dist, to retrieve in the other callback
   XBT_DEBUG("IB callback - action %p init", action);
 
@@ -105,6 +105,8 @@ NetworkIBModel::NetworkIBModel()
   Be = atof(xbt_dynar_get_as(radical_elements, 0, char *));
   Bs = atof(xbt_dynar_get_as(radical_elements, 1, char *));
   ys = atof(xbt_dynar_get_as(radical_elements, 2, char *));
+
+  xbt_dynar_free(&radical_elements);
 }
 
 NetworkIBModel::~NetworkIBModel()