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; }