diff --git a/src/libpmem2/map_posix.c b/src/libpmem2/map_posix.c index 31656af389a..e914d5251d0 100644 --- a/src/libpmem2/map_posix.c +++ b/src/libpmem2/map_posix.c @@ -590,11 +590,10 @@ pmem2_map_delete(struct pmem2_map **map_ptr) if (ret) return ret; -#ifndef _WIN32 if (map->source.type == PMEM2_SOURCE_FD) { VALGRIND_REMOVE_PMEM_MAPPING(map_addr, map_len); } -#endif + /* * when reserved_length==0 mapping is created by pmem2_map_from_existing * such mappings are provided by the users and shouldn't be unmapped