fix: Fixed some leaks in backup and scan.

This commit is contained in:
2026-06-24 13:16:08 -04:00
parent 78984b57ff
commit dc72ff56fd
4 changed files with 25 additions and 4 deletions

View File

@@ -15,7 +15,10 @@ cmd_backup :: proc(cmd: ^Command) {
return
}
// TODO: allow new_env_file to accept allocator?
// TODO: Write a test that covers this leak
file, ok := new_env_file(path)
defer delete_envfile(&file)
if !ok {
return
}