aboutsummaryrefslogtreecommitdiff
path: root/src/common/host_memory.cpp
diff options
context:
space:
mode:
authorAndrew Strelsky <ajs222@njit.edu>2021-09-29 06:58:48 -0400
committerAndrew Strelsky <ajs222@njit.edu>2021-09-29 06:58:48 -0400
commita24aa6e5bd5ef3693bf843a8f81d639a090cead8 (patch)
tree6b498abd90cb80e1d5c8c942fa584b2da72e9970 /src/common/host_memory.cpp
parentaee79cc75854d130c070693d1991f038a94ca562 (diff)
Fixed invalid iterator usage
Diffstat (limited to 'src/common/host_memory.cpp')
-rw-r--r--src/common/host_memory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/host_memory.cpp b/src/common/host_memory.cpp
index 6661244cfb..b44a44949a 100644
--- a/src/common/host_memory.cpp
+++ b/src/common/host_memory.cpp
@@ -314,8 +314,8 @@ private:
}
void UntrackPlaceholder(boost::icl::separate_interval_set<size_t>::iterator it) {
- placeholders.erase(it);
placeholder_host_pointers.erase(it->lower());
+ placeholders.erase(it);
}
/// Return true when a given memory region is a "nieche" and the placeholders don't have to be