From 69a44d3ef7adb09a5994a18f1b58cbbecf8851e0 Mon Sep 17 00:00:00 2001 From: Clemens Akens Date: Sat, 26 Aug 2023 09:18:16 +0200 Subject: [PATCH] Remove defer --- src/sampler.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sampler.zig b/src/sampler.zig index 7a6e08e..5ceea5d 100644 --- a/src/sampler.zig +++ b/src/sampler.zig @@ -22,7 +22,7 @@ pub fn init(allocator: std.mem.Allocator, cli: *const Cli, vocab_size: usize) !S } pub fn deinit(self: *const Self) void { - defer self.allocator.free(self.probability_index_pairs_buffer); + self.allocator.free(self.probability_index_pairs_buffer); } pub fn sample(self: *Self, probability_distribution: []f32) usize {