diff --git a/lib/std/math/big/int.zig b/lib/std/math/big/int.zig index 7d8d3a195bc8f6ddba03b128e9ec7d65b22b6b2b..e85e8d292d5040691fb628aa1e2cb815f8b34023 100644 --- a/lib/std/math/big/int.zig +++ b/lib/std/math/big/int.zig @@ -137,10 +137,9 @@ pub const Int = struct { } /// Frees all memory associated with an Int. - pub fn deinit(self: *Int) void { + pub fn deinit(self: Int) void { self.assertWritable(); self.allocator.?.free(self.limbs); - self.* = undefined; } /// Clones an Int and returns a new Int with the same value. The new Int is a deep copy and