diff options
author | Mike Lockwood <lockwood@android.com> | 2010-11-11 11:22:32 -0500 |
---|---|---|
committer | Mike Lockwood <lockwood@android.com> | 2010-11-11 11:22:32 -0500 |
commit | 7ce05cf6009a2fbbceb3d2c0ff639473d0b7d6a9 (patch) | |
tree | c812a6b5ed5daf0a9e4f87f70b7fd0c99ee960e2 /media/mtp | |
parent | 5f0cb5c62553125715dbbb171f0b81e4b7c6d6ac (diff) | |
download | frameworks_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.cpp | 1 |
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) { |