commit | ca5cc4e8136f71a448f41f68ea78be19735624d4 | [log] [tgz] |
---|---|---|
author | Grant Hernandez <granthernandez@google.com> | Thu Jul 18 12:47:56 2019 -0700 |
committer | Grant Hernandez <granthernandez@google.com> | Thu Jul 18 12:47:56 2019 -0700 |
tree | b1d970ba90565be41b73c6d9bb51b382e081ca4b | |
parent | 1b96fe4a784c96cdeac6e704f196f1dcb48b3e9e [diff] [blame] |
MTP: free leaked DIR after copyRecursive Test: mmm -j Test: atest mtp_ffs_handle_test Change-Id: I572c8c0e982e89ed6f21f181e503b11e5439be59
diff --git a/media/mtp/MtpUtils.cpp b/media/mtp/MtpUtils.cpp index 8564576..84a20d3 100644 --- a/media/mtp/MtpUtils.cpp +++ b/media/mtp/MtpUtils.cpp
@@ -150,6 +150,7 @@ ret += copyFile(oldFile.c_str(), newFile.c_str()); } } + closedir(dir); return ret; }