[utils] Fix retiring of live block for the lock free allocator
[mono.git] / mono / utils / mono-filemap.c
index 895e7e7355dc177c16614b7aabf6ea0fc5a6baf9..cd93eaff39fc9aacdee597c3a2d69c2c5b9fded6 100644 (file)
@@ -5,6 +5,7 @@
  *   Paolo Molaro (lupus@ximian.com)
  *
  * Copyright 2008-2008 Novell, Inc.
+ * Licensed under the MIT license. See LICENSE file in the project root for full license information.
  */
 
 #include "config.h"
@@ -67,7 +68,7 @@ mono_file_map_close (MonoFileMap *fmap)
 #ifdef WIN32
        return fclose ((FILE*)fmap);
 #else
-       close (mono_file_map_fd (fmap));
+       return close (mono_file_map_fd (fmap));
 #endif
 }