From eac0b92f0d4342c98672ca910194cf076581f30b Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Mon, 11 Jan 2016 09:55:49 -0500 Subject: [PATCH] core/library: Close directory after reading We were opening a directory for scanning, but we never closed when we were done. If we do this enough then the kernel starts telling us that there are too many open files. Signed-off-by: Anna Schumaker --- core/library.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/core/library.cpp b/core/library.cpp index f6969352..1b275a2b 100644 --- a/core/library.cpp +++ b/core/library.cpp @@ -119,6 +119,7 @@ static void scan_path(void *data) } track_db_commit(); + g_dir_close(dir); delete scan; }