diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-02-14 14:07:17 +0100 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-02-14 14:07:17 +0100 |
commit | 8d009e3e8ac6c6431a8bc79a07d9ad7c0295d160 (patch) | |
tree | 361496f3f028a8c876c1059fd547b0191237ce67 /apt-pkg/contrib/mmap.cc | |
parent | 5645e8b1cebb57134df717b8339248811cb762f2 (diff) | |
parent | 94244f75f8280c9b4018736d503d17455c284b2d (diff) |
merged from debian-sid
Diffstat (limited to 'apt-pkg/contrib/mmap.cc')
-rw-r--r-- | apt-pkg/contrib/mmap.cc | 2 |
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 |