From 7ce05cf6009a2fbbceb3d2c0ff639473d0b7d6a9 Mon Sep 17 00:00:00 2001 From: Mike Lockwood Date: Thu, 11 Nov 2010 11:22:32 -0500 Subject: MTP: Add missing call to closedir() in recursive delete code BUG: 3185660 Change-Id: I3744d2cb193829d20a689af2aea50e8516779631 Signed-off-by: Mike Lockwood --- media/mtp/MtpServer.cpp | 1 + 1 file changed, 1 insertion(+) 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) { -- cgit v1.1