mirror of
https://github.com/sbrow/envr.git
synced 2026-06-27 18:48:33 -04:00
fix: Fixed memory leaks in find_binary.
This commit is contained in:
2
db.odin
2
db.odin
@@ -512,7 +512,7 @@ update_dir :: proc(f: ^EnvFile, new_dir: string) {
|
||||
|
||||
find_moved_dirs :: proc(d: ^Db, f: ^EnvFile) -> ([dynamic]string, bool) {
|
||||
feats := check_features()
|
||||
if !has_feature(feats, .Fd) || !has_feature(feats, .Git) {
|
||||
if .Fd not_in feats || .Git not_in feats {
|
||||
fmt.println("Error: fd and git are required for moved dir detection")
|
||||
return {}, false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user