diff options
Diffstat (limited to 'lib/std/Build/Cache.zig')
| -rw-r--r-- | lib/std/Build/Cache.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/std/Build/Cache.zig b/lib/std/Build/Cache.zig index 9e5ad20f93..c10afa200a 100644 --- a/lib/std/Build/Cache.zig +++ b/lib/std/Build/Cache.zig @@ -419,6 +419,7 @@ pub const Manifest = struct { fn addFileInner(self: *Manifest, prefixed_path: PrefixedPath, handle: ?fs.File, max_file_size: ?usize) usize { const gop = self.files.getOrPutAssumeCapacityAdapted(prefixed_path, FilesAdapter{}); if (gop.found_existing) { + self.cache.gpa.free(prefixed_path.sub_path); gop.key_ptr.updateMaxSize(max_file_size); gop.key_ptr.updateHandle(handle); return gop.index; |
