]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/mmap.cc
merge from the donkult branch
[apt.git] / apt-pkg / contrib / mmap.cc
index aa52b4c3066ef923ee5c622a98f77a21c0714622..917466c2f98a883dd634d640ac1a54fede3a762a 100644 (file)
@@ -201,7 +201,7 @@ DynamicMMap::~DynamicMMap()
    if (Fd == 0)
    {
 #ifdef _POSIX_MAPPED_FILES
-      munmap(Base, WorkSpace);
+      if(munmap(Base, WorkSpace) < 0)
 #else
       delete [] (unsigned char *)Base;
 #endif