fix memleak

This commit is contained in:
Motiejus Jakštys 2022-02-16 11:32:27 +02:00 committed by Motiejus Jakštys
parent b43ba9c672
commit e55d01ed15

View File

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