瀏覽代碼

mpi/src/starpu_mpi.c: free allocated memory

Nathalie Furmento 12 年之前
父節點
當前提交
3152c56906
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      mpi/src/starpu_mpi.c

+ 3 - 1
mpi/src/starpu_mpi.c

@@ -383,7 +383,7 @@ int starpu_mpi_wait(starpu_mpi_req *public_req, MPI_Status *status)
 	*public_req = NULL;
 	*public_req = NULL;
 	free(req);
 	free(req);
 
 
-	//free(waiting_req);
+	free(waiting_req);
 	_STARPU_MPI_LOG_OUT();
 	_STARPU_MPI_LOG_OUT();
 	return ret;
 	return ret;
 }
 }
@@ -467,6 +467,8 @@ int starpu_mpi_test(starpu_mpi_req *public_req, int *flag, MPI_Status *status)
 			*public_req = NULL;
 			*public_req = NULL;
 			free(req);
 			free(req);
 		}
 		}
+
+		free(testing_req);
 	}
 	}
 	else
 	else
 	{
 	{