Parcourir la source

Merge pull request #1327 from graphitemaster/fix-path-join-leak

fix memory leak in path.join
gingerBill il y a 3 ans
Parent
commit
e230b7110c
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      core/path/path.odin

+ 1 - 1
core/path/path.odin

@@ -150,7 +150,7 @@ join :: proc(elems: ..string, allocator := context.allocator) -> string {
 	context.allocator = allocator
 	for elem, i in elems {
 		if elem != "" {
-			s := strings.join(elems[i:], "/")
+			s := strings.join(elems[i:], "/", context.temp_allocator)
 			return clean(s)
 		}
 	}