From e55d01ed15dbf2ed1b59701ec262d39d95495dfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Wed, 16 Feb 2022 11:32:27 +0200 Subject: [PATCH] fix memleak --- src/shellpop.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shellpop.zig b/src/shellpop.zig index 3b9e97c..ad39c49 100644 --- a/src/shellpop.zig +++ b/src/shellpop.zig @@ -139,6 +139,7 @@ const ShellPopcon = struct { const result = ShellSections.init(self.allocator, topShells); const allocator = self.allocator; + self.deinit(); self.* = init(allocator); return result; }