Make sure to free stuff

This commit is contained in:
Lyssieth 2024-12-02 09:16:32 +02:00
parent 684f2717d9
commit 1d8259b88b
Signed by untrusted user who does not match committer: lyssieth
GPG key ID: 200268854934CFAB

View file

@ -58,6 +58,13 @@ const Globals = struct {
file.close();
}
for (self.additionalScopes.items) |modifier| {
if (modifier.rename) |value| {
self.allocator.free(value);
}
self.allocator.free(modifier.scope);
}
self.additionalScopes.deinit();
self.* = undefined;