--- rpl/src/gestion_variables.c 2015/01/29 09:33:41 1.89 +++ rpl/src/gestion_variables.c 2015/02/01 09:47:18 1.90 @@ -2236,7 +2236,8 @@ copie_arbre_variables(struct_processus * s_variable = (*((struct_variable *) (*l_element_courant).donnee)); - if ((s_variable.nom = malloc((strlen((*((struct_variable *) + if ((s_variable.nom = rpl_malloc(s_nouvel_etat_processus, + (strlen((*((struct_variable *) (*l_element_courant).donnee)).nom) + 1) * sizeof(unsigned char))) == NULL) { @@ -2415,8 +2416,8 @@ copie_arbre_variables(struct_processus * return; } - if ((s_variable_statique.nom = malloc((strlen( - (*(*l_element_statique_courant).variable).nom) + 1) * + if ((s_variable_statique.nom = rpl_malloc(s_nouvel_etat_processus, + (strlen((*(*l_element_statique_courant).variable).nom) + 1) * sizeof(unsigned char))) == NULL) { (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;