git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9776
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
static void routing_parse_Econfig(void); /*config Tag */
static char* replace_random_parameter(char * chaine);
static void routing_parse_Econfig(void); /*config Tag */
static char* replace_random_parameter(char * chaine);
+static void clean_dict_random(void);
/* this lines are only for replace use like index in the model table */
typedef enum {
/* this lines are only for replace use like index in the model table */
typedef enum {
surfxml_add_callback(STag_surfxml_peer_cb_list,
&routing_parse_Speer);
surfxml_add_callback(STag_surfxml_peer_cb_list,
&routing_parse_Speer);
+ surfxml_add_callback(ETag_surfxml_platform_cb_list,
+ &clean_dict_random);
#ifdef HAVE_TRACING
instr_routing_define_callbacks();
#ifdef HAVE_TRACING
instr_routing_define_callbacks();
xbt_free(string);
string = test_string;
} //In other case take old value (without ${})
xbt_free(string);
string = test_string;
} //In other case take old value (without ${})
+ else
+ free(test_string);
+static void clean_dict_random(void)
+{
+ XBT_DEBUG("Clean dict for random");
+ xbt_dict_free(&random_value);
+ xbt_dict_free(&patterns);
+}
+
static void routing_parse_Speer(void)
{
static int AX_ptr = 0;
static void routing_parse_Speer(void)
{
static int AX_ptr = 0;