Przeglądaj źródła

mpi/src/starpu_mpi.c: remove the object from hashtable before freeing it

Nathalie Furmento 12 lat temu
rodzic
commit
7e4ee4f819
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      mpi/src/starpu_mpi.c

+ 1 - 1
mpi/src/starpu_mpi.c

@@ -1473,8 +1473,8 @@ static void *_starpu_mpi_progress_thread_func(void *arg)
 			struct _starpu_mpi_copy_handle_hashlist *current, *tmp;
 			HASH_ITER(hh, _starpu_mpi_copy_handle_hashmap[n], current, tmp)
 			{
-				free(current);
 				HASH_DEL(_starpu_mpi_copy_handle_hashmap[n], current);
+				free(current);
 			}
 		}
 	}