mirror of
https://github.com/sbrow/envr.git
synced 2026-06-27 18:48:33 -04:00
fix: Fixed some leaks in backup and scan.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user