Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Improve error message.
[simgrid.git] / teshsuite / smpi / indexed_test.c
index e557575..4ceed68 100644 (file)
@@ -1,5 +1,11 @@
-#include "mpi.h"
+/* Copyright (c) 2012-2014. The SimGrid Team.
+ * All rights reserved.                                                     */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+
 #include <stdio.h>
+#include "mpi.h"
 
 int main(int argc, char *argv[])
 {
@@ -42,6 +48,8 @@ int main(int argc, char *argv[])
         fflush(stdout);
     }
 
+    MPI_Type_free(&type);
+    MPI_Type_free(&type2);
     MPI_Finalize();
     return 0;
 }