Skip to content

Commit

Permalink
remove invalid free
Browse files Browse the repository at this point in the history
  • Loading branch information
Techatrix committed Dec 6, 2024
1 parent 1ba0cb9 commit 53d285f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/DiagnosticsCollection.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 53d285f

Please sign in to comment.