fix: Fixed leaks.

This commit is contained in:
2026-06-19 14:53:42 -04:00
parent 0083e4e0db
commit c7c254f6f2
4 changed files with 21 additions and 3 deletions

View File

@@ -550,6 +550,7 @@ get_git_remotes :: proc(dir: string, allocator: mem.Allocator) -> [dynamic]strin
if r == url {found = true; break}
}
if !found {
// FIXME: Currently leaks when adding a file with envr scan
cloned, _ := strings.clone(url, allocator)
append(&remotes, cloned)
}