summaryrefslogtreecommitdiff
path: root/lsp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lsp.c')
-rw-r--r--lsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lsp.c b/lsp.c
index b84abe2..e9654cb 100644
--- a/lsp.c
+++ b/lsp.c
@@ -21,7 +21,7 @@ bool lsp_get_error(LSP *lsp, char *error, size_t error_size, bool clear) {
static void lsp_document_position_free(LSPDocumentPosition *position) {
- free(position->path);
+ free(position->document);
}
static void lsp_document_change_event_free(LSPDocumentChangeEvent *event) {