From 53d285f58e50c676b0e189a676082c890b47ae7c Mon Sep 17 00:00:00 2001 From: Techatrix Date: Fri, 6 Dec 2024 21:46:11 +0100 Subject: [PATCH] remove invalid free --- src/DiagnosticsCollection.zig | 1 - 1 file changed, 1 deletion(-) diff --git a/src/DiagnosticsCollection.zig b/src/DiagnosticsCollection.zig index 426b5ef751..63affe3db0 100644 --- a/src/DiagnosticsCollection.zig +++ b/src/DiagnosticsCollection.zig @@ -40,7 +40,6 @@ pub fn deinit(collection: *DiagnosticsCollection) void { for (entry.diagnostics_set.keys(), entry.diagnostics_set.values()) |uri, lsp_diagnostic| { collection.allocator.free(uri); lsp_diagnostic.arena.promote(collection.allocator).deinit(); - collection.allocator.free(lsp_diagnostic.diagnostics); } entry.diagnostics_set.deinit(collection.allocator); }