Browse Source

Fix another case where #45 would occur

Tom Almeida 6 years ago
parent
commit
ad6a0aff51
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/bookkeeper.rs

+ 1 - 0
src/bookkeeper.rs

@@ -637,6 +637,7 @@ pub trait Allocator: ops::DerefMut<Target = Bookkeeper> {
                 if ind.start == self.pool.len() {
                     self.push(excessive);
                 } else if !excessive.is_empty() {
+                    self.total_bytes += excessive.size();
                     self.pool[ind.start] = excessive;
                 }
                 // Block will still not be adjacent, due to `excessive` being guaranteed to not be