diff --git a/qiling/os/memory.py b/qiling/os/memory.py index 843059534..5357623ef 100644 --- a/qiling/os/memory.py +++ b/qiling/os/memory.py @@ -419,8 +419,7 @@ def unmap_all(self): """ for begin, end, _ in self.ql.uc.mem_regions(): - if begin and end: - self.unmap(begin, end - begin + 1) + self.unmap(begin, end - begin + 1) def is_available(self, addr: int, size: int) -> bool: """Query whether the memory range starting at `addr` and is of length of `size` bytes