summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2024-09-08 12:41:26 -0700
committerpommicket <pommicket@gmail.com>2024-09-08 12:42:41 -0700
commita6dd449d39b5b5d0e7c2e9d5e4ddbb4505ba0cd7 (patch)
treee35c7691ae6de9249d93023fc5621c7291ccd1c4 /main.c
parentfd1e2b3d3ccd26fb5bd9d7cbced04f673cfd19ba (diff)
Fix tiny memory leak on windows
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.c b/main.c
index bace6b8..dc733a9 100644
--- a/main.c
+++ b/main.c
@@ -15,6 +15,7 @@ FUTURE FEATURES:
- restart LSP server automatically?
- LSP request timeout
- reflow command
+- editing files with invalid UTF-8
*/
/*
@@ -480,7 +481,9 @@ int main(int argc, char **argv) {
}
if (fs_path_type(ted->local_data_dir) == FS_NON_EXISTENT)
fs_mkdir(ted->local_data_dir);
-
+ #if _WIN32
+ free(appdata);
+ #endif
}
{