summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/mmap.cc
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2011-02-14 12:05:35 +0100
committerMichael Vogt <mvo@debian.org>2011-02-14 12:05:35 +0100
commit1fc07a44e8191e00fc1566bfc15e8b370da77330 (patch)
tree94603cf04d736dc500130389f2ef5ba4b027c8bc /apt-pkg/contrib/mmap.cc
parent1dda80929fcd62c287a84f1ecc1277fc39890efe (diff)
parent2cae0ccb49efbeebe33f364b61e639ebf2639bdd (diff)
merged from lp:~donkult/apt/sid
Diffstat (limited to 'apt-pkg/contrib/mmap.cc')
-rw-r--r--apt-pkg/contrib/mmap.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-pkg/contrib/mmap.cc b/apt-pkg/contrib/mmap.cc
index 69fb61fca..4978446d2 100644
--- a/apt-pkg/contrib/mmap.cc
+++ b/apt-pkg/contrib/mmap.cc
@@ -266,6 +266,8 @@ DynamicMMap::~DynamicMMap()
{
if (Fd == 0)
{
+ if (Base == 0)
+ return;
#ifdef _POSIX_MAPPED_FILES
munmap(Base, WorkSpace);
#else