From 3cc7b00a7090a9d8f345547bd7b8f56c26ad5acd Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Mon, 6 Oct 2014 11:33:01 +0200 Subject: [PATCH] duplicated lines --- src/smpi/smpi_comm.c | 2 -- src/smpi/smpi_mpi_dt.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/smpi/smpi_comm.c b/src/smpi/smpi_comm.c index 19fadf3b0f..add045fa1d 100644 --- a/src/smpi/smpi_comm.c +++ b/src/smpi/smpi_comm.c @@ -569,8 +569,6 @@ int smpi_comm_attr_get(MPI_Comm comm, int keyval, void* attr_value, int* flag){ return MPI_SUCCESS; } TRY { - char* tmpkey=xbt_malloc(INTSIZEDCHAR); - sprintf(tmpkey, "%d", keyval); *(void**)attr_value = xbt_dict_get(comm->attributes, (const char*)tmpkey); *flag=1; } diff --git a/src/smpi/smpi_mpi_dt.c b/src/smpi/smpi_mpi_dt.c index 860e48c532..d7f0fc9ce3 100644 --- a/src/smpi/smpi_mpi_dt.c +++ b/src/smpi/smpi_mpi_dt.c @@ -1703,8 +1703,6 @@ int smpi_type_attr_get(MPI_Datatype type, int keyval, void* attr_value, int* fla return MPI_SUCCESS; } TRY { - char* tmpkey=xbt_malloc(INTSIZEDCHAR); - sprintf(tmpkey, "%d", keyval); *(void**)attr_value = xbt_dict_get(type->attributes, (const char*)tmpkey); *flag=1; } -- 2.20.1