diff --git a/src/string_pool.rs b/src/string_pool.rs index a275305..41b0e26 100644 --- a/src/string_pool.rs +++ b/src/string_pool.rs @@ -47,7 +47,7 @@ impl Drop for Chunk { // have a destructor. This means the len doesn't matter, only // the capacity. unsafe { - Vec::from_raw_parts(self.start, self.capacity, self.capacity); + Vec::from_raw_parts(self.start, 0, self.capacity); } } }