diff options
| author | Dale Weiler <weilercdale@gmail.com> | 2021-11-22 10:25:54 -0500 |
|---|---|---|
| committer | Dale Weiler <weilercdale@gmail.com> | 2021-11-22 10:25:54 -0500 |
| commit | a55f0cfb631cc9e25d0e2de7f5ba0d047232237d (patch) | |
| tree | 526b0f0631d833111caa709c2f66126ec6e92664 /core/path | |
| parent | f40f12d480173274fd64a04dfc7414b7697f5a7c (diff) | |
fix memory leak in path.join
Diffstat (limited to 'core/path')
| -rw-r--r-- | core/path/path.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/path/path.odin b/core/path/path.odin index d54106b3a..186176b42 100644 --- a/core/path/path.odin +++ b/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)
}
}
|