From: Arnaud Giersch Date: Mon, 23 Sep 2013 19:39:56 +0000 (+0200) Subject: Free loc, which is unused in this path. X-Git-Tag: v3_9_90~104^2~4 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/a5e649421a14d09f23290b79ebe2e61066f8efde?hp=aa1c2a3c58f59790b6bf2d45908d0e731d68a6c9 Free loc, which is unused in this path. --- diff --git a/src/smpi/smpi_bench.c b/src/smpi/smpi_bench.c index 6e0b4099a8..089275297c 100644 --- a/src/smpi/smpi_bench.c +++ b/src/smpi/smpi_bench.c @@ -389,6 +389,7 @@ void *smpi_shared_malloc(size_t size, const char *file, int line) xbt_dict_set(allocs, loc, data, NULL); XBT_DEBUG("Mapping %s at %p through %d", loc, mem, fd); } else { + xbt_free(loc); mem = shm_map(data->fd, size, data); data->count++; }