소스 검색

mpi/src/starpu_mpi.c: free allocated memory

Nathalie Furmento 11 년 전
부모
커밋
b6f763c6e0
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      mpi/src/starpu_mpi.c

+ 2 - 1
mpi/src/starpu_mpi.c

@@ -1473,7 +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)
 			{
-			     HASH_DEL(_starpu_mpi_copy_handle_hashmap[n], current);
+				free(current);
+				HASH_DEL(_starpu_mpi_copy_handle_hashmap[n], current);
 			}
 		}
 	}