Skip to content

Commit 88f3bc9

Browse files
committed
Update address_allocator.rs
Signed-off-by: ylzh10 <[email protected]>
1 parent 2a10099 commit 88f3bc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/address_allocator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ impl AddressAllocator {
7474
/// Deletes the specified memory slot or returns `ResourceNotAvailable` if
7575
/// the node was not allocated before.
7676
pub fn free(&mut self, key: &RangeInclusive) -> Result<()> {
77-
self.interval_tree.free(key);
77+
self.interval_tree.free(key)?;
7878
self.available += key.len() as usize;
7979
Ok(())
8080
}

0 commit comments

Comments
 (0)