| ... | @@ -419,6 +419,7 @@ pub const Manifest = struct { | ... | @@ -419,6 +419,7 @@ pub const Manifest = struct { |
| 419 | fn addFileInner(self: *Manifest, prefixed_path: PrefixedPath, handle: ?fs.File, max_file_size: ?usize) usize { | 419 | fn addFileInner(self: *Manifest, prefixed_path: PrefixedPath, handle: ?fs.File, max_file_size: ?usize) usize { |
| 420 | const gop = self.files.getOrPutAssumeCapacityAdapted(prefixed_path, FilesAdapter{}); | 420 | const gop = self.files.getOrPutAssumeCapacityAdapted(prefixed_path, FilesAdapter{}); |
| 421 | if (gop.found_existing) { | 421 | if (gop.found_existing) { |
| | 422 | self.cache.gpa.free(prefixed_path.sub_path); |
| 422 | gop.key_ptr.updateMaxSize(max_file_size); | 423 | gop.key_ptr.updateMaxSize(max_file_size); |
| 423 | gop.key_ptr.updateHandle(handle); | 424 | gop.key_ptr.updateHandle(handle); |
| 424 | return gop.index; | 425 | return gop.index; |