summaryrefslogtreecommitdiffstats
path: root/media/mtp
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2010-11-11 11:22:32 -0500
committerMike Lockwood <lockwood@android.com>2010-11-11 11:22:32 -0500
commit7ce05cf6009a2fbbceb3d2c0ff639473d0b7d6a9 (patch)
treec812a6b5ed5daf0a9e4f87f70b7fd0c99ee960e2 /media/mtp
parent5f0cb5c62553125715dbbb171f0b81e4b7c6d6ac (diff)
downloadframeworks_av-7ce05cf6009a2fbbceb3d2c0ff639473d0b7d6a9.tar.gz
frameworks_av-7ce05cf6009a2fbbceb3d2c0ff639473d0b7d6a9.tar.bz2
frameworks_av-7ce05cf6009a2fbbceb3d2c0ff639473d0b7d6a9.zip
MTP: Add missing call to closedir() in recursive delete code
BUG: 3185660 Change-Id: I3744d2cb193829d20a689af2aea50e8516779631 Signed-off-by: Mike Lockwood <lockwood@android.com>
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 f74f395e5f..5ba6be9184 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) {