summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-18 16:02:43 +0100
committerDavid Robillard <d@drobilla.net>2020-12-18 17:38:46 +0100
commit3b11ed198e2b6d26977edc3f0857062f0295b42b (patch)
tree0f2fda0b7d5241065b4cfbe0ce28168cbb134534 /src
parentb58174f0ebe31fb56fe891bfbcf10979079053e3 (diff)
downloadlilv-3b11ed198e2b6d26977edc3f0857062f0295b42b.tar.gz
lilv-3b11ed198e2b6d26977edc3f0857062f0295b42b.tar.bz2
lilv-3b11ed198e2b6d26977edc3f0857062f0295b42b.zip
Windows: Fix leaking directory handles
Diffstat (limited to 'src')
-rw-r--r--src/filesystem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/filesystem.c b/src/filesystem.c
index 0482336..3044e8e 100644
--- a/src/filesystem.c
+++ b/src/filesystem.c
@@ -379,6 +379,7 @@ lilv_dir_for_each(const char* path,
}
} while (FindNextFile(fh, &fd));
}
+ FindClose(fh);
free(pat);
#else
DIR* dir = opendir(path);