diff options
author | pommicket <pommicket@gmail.com> | 2023-07-19 11:46:28 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-07-19 19:03:22 -0400 |
commit | 4143734747b7b544daecdf1b8676838362c6cb59 (patch) | |
tree | e7c879967027f47b957c35e551b3e971a6aab924 /lsp-write.c | |
parent | e5dc92fcd600b15977cad7c81de7b8c1cd11fb87 (diff) |
fix memory leaks (not really leaky)
Diffstat (limited to 'lsp-write.c')
-rw-r--r-- | lsp-write.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lsp-write.c b/lsp-write.c index 830c0ab..df695a6 100644 --- a/lsp-write.c +++ b/lsp-write.c @@ -680,3 +680,10 @@ void write_message(LSP *lsp, LSPMessage *message) { } #undef write_bool + +void lsp_write_quit(void) { + arr_foreach_ptr(language_ids, LanguageId, lid) { + free(lid->identifier); + } + arr_clear(language_ids); +} |