From d7a8c58aaa5ac79fc94a8a54f8f0eb514b7ab5ff Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 10 Jun 2014 02:21:22 +0200 Subject: [PATCH] close dir opened with opendir() - fixes accumulated fd for plugin state saves --- libs/pbd/clear_dir.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/pbd/clear_dir.cc b/libs/pbd/clear_dir.cc index 9d2d7ed883..cbf73bc7d7 100644 --- a/libs/pbd/clear_dir.cc +++ b/libs/pbd/clear_dir.cc @@ -128,4 +128,5 @@ PBD::remove_directory (const std::string& dir) { if (::g_rmdir(dir.c_str())) { error << string_compose (_("cannot remove directory %1 (%2)"), dir, strerror (errno)) << endmsg; } + ::closedir (dead); }