X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/07c319ec54d6fc778ee3cc5e75a747242006723e..2bd57440169fc34d5eabaddcec33de236dc367a4:/src/mc/memory_map.c diff --git a/src/mc/memory_map.c b/src/mc/memory_map.c index 689fe6c157..7496b501db 100644 --- a/src/mc/memory_map.c +++ b/src/mc/memory_map.c @@ -19,7 +19,7 @@ memory_map_t get_memory_map(void) /* to be returned. */ fp = fopen("/proc/self/maps", "r"); - xbt_assert0(fp, + xbt_assert(fp, "Cannot open /proc/self/maps to investigate the memory map of the process. Please report this bug."); ret = xbt_new0(s_memory_map_t, 1); @@ -133,8 +133,7 @@ memory_map_t get_memory_map(void) ret->mapsize++; } - if (line) - free(line); + free(line); return ret; }