Browse Source

fix memleak

Samuel Thibault 6 years ago
parent
commit
0f4c6644fb
1 changed files with 4 additions and 0 deletions
  1. 4 0
      mpi/src/mpi/starpu_mpi_mpi.c

+ 4 - 0
mpi/src/mpi/starpu_mpi_mpi.c

@@ -1610,7 +1610,11 @@ void _starpu_mpi_driver_init(struct starpu_conf *conf)
 void _starpu_mpi_driver_shutdown()
 {
 	if (mpi_driver)
+	{
 		starpu_driver_deinit(mpi_driver);
+		free(mpi_driver);
+		mpi_driver = NULL;
+	}
 }
 
 #endif /* STARPU_USE_MPI_MPI */