Browse Source

delete local_str with the appropriate allocator

Colin Davidson 10 months ago
parent
commit
fcaa3abe47
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/time/timezone/tz_unix.odin

+ 1 - 1
core/time/timezone/tz_unix.odin

@@ -52,7 +52,7 @@ local_tz_name :: proc(allocator := context.allocator) -> (name: string, success:
 	}
 
 	if local_str == "" {
-		delete(local_str)
+		delete(local_str, allocator)
 
 		str, err := strings.clone("UTC", allocator)
 		if err != nil { return }