| ... | @@ -137,10 +137,9 @@ pub const Int = struct { | ... | @@ -137,10 +137,9 @@ pub const Int = struct { |
| 137 | } | 137 | } |
| 138 | | 138 | |
| 139 | /// Frees all memory associated with an Int. | 139 | /// Frees all memory associated with an Int. |
| 140 | pub fn deinit(self: *Int) void { | 140 | pub fn deinit(self: Int) void { |
| 141 | self.assertWritable(); | 141 | self.assertWritable(); |
| 142 | self.allocator.?.free(self.limbs); | 142 | self.allocator.?.free(self.limbs); |
| 143 | self.* = undefined; | | |
| 144 | } | 143 | } |
| 145 | | 144 | |
| 146 | /// Clones an Int and returns a new Int with the same value. The new Int is a deep copy and | 145 | /// Clones an Int and returns a new Int with the same value. The new Int is a deep copy and |