--- rpl/src/instructions_v1.c 2013/03/24 13:42:44 1.52 +++ rpl/src/instructions_v1.c 2013/03/24 22:06:10 1.53 @@ -1023,12 +1023,6 @@ instruction_vars(struct_processus *s_eta (*s_objet_resultat).objet = NULL; l_element_precedent = NULL; - if (pthread_mutex_lock(&mutex_liste_variables_partagees) != 0) - { - (*s_etat_processus).erreur_systeme = d_es_allocation_memoire; - return; - } - nb_variables = nombre_variables(s_etat_processus); if ((tableau = malloc(((size_t) nb_variables) * @@ -1036,19 +1030,12 @@ instruction_vars(struct_processus *s_eta { liberation_mutexes_arbre_variables_partagees(s_etat_processus, (*(*s_etat_processus).s_arbre_variables_partagees)); - pthread_mutex_unlock(&mutex_liste_variables_partagees); (*s_etat_processus).erreur_systeme = d_es_allocation_memoire; return; } nb_variables = liste_variables(s_etat_processus, tableau); - if (pthread_mutex_unlock(&mutex_liste_variables_partagees) != 0) - { - (*s_etat_processus).erreur_systeme = d_es_allocation_memoire; - return; - } - for(i = 0; i < nb_variables; i++) { if (l_element_precedent == NULL)