summaryrefslogtreecommitdiffstats
path: root/media/mtp
diff options
context:
space:
mode:
Diffstat (limited to 'media/mtp')
-rw-r--r--media/mtp/MtpServer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/media/mtp/MtpServer.cpp b/media/mtp/MtpServer.cpp
index f74f395..5ba6be9 100644
--- a/media/mtp/MtpServer.cpp
+++ b/media/mtp/MtpServer.cpp
@@ -736,6 +736,7 @@ static void deleteRecursive(const char* path) {
unlink(pathbuf);
}
}
+ closedir(dir);
}
static void deletePath(const char* path) {