소스 검색

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

Nathalie Furmento 12 년 전
부모
커밋
7e4ee4f819
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);
 			}
 		}
 	}