diff options
author | Jeff Sharkey <jsharkey@android.com> | 2013-04-25 11:35:12 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2013-04-25 11:35:12 -0700 |
commit | 5adb34f022bdc856e98483579a299f89a3c28d5c (patch) | |
tree | e771432ae36eaf84e97fe64c73e4bc146a0b919a /packages/DefaultContainerService | |
parent | 007d4d7040c9b41de584e79ba7dbd15d25f54971 (diff) | |
download | frameworks_base-5adb34f022bdc856e98483579a299f89a3c28d5c.zip frameworks_base-5adb34f022bdc856e98483579a299f89a3c28d5c.tar.gz frameworks_base-5adb34f022bdc856e98483579a299f89a3c28d5c.tar.bz2 |
Always close incoming PFD to avoid leaking.
Change-Id: I9559bb1e83c9bf2f9fd2af9c7b0d8b9e3aadc4ae
Diffstat (limited to 'packages/DefaultContainerService')
-rw-r--r-- | packages/DefaultContainerService/src/com/android/defcontainer/DefaultContainerService.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/DefaultContainerService/src/com/android/defcontainer/DefaultContainerService.java b/packages/DefaultContainerService/src/com/android/defcontainer/DefaultContainerService.java index de77cac..58fc8e8 100644 --- a/packages/DefaultContainerService/src/com/android/defcontainer/DefaultContainerService.java +++ b/packages/DefaultContainerService/src/com/android/defcontainer/DefaultContainerService.java @@ -146,6 +146,8 @@ public class DefaultContainerService extends IntentService { Slog.e(TAG, "Could not copy URI " + packageURI.toString() + " Security: " + e.getMessage()); return PackageManager.INSTALL_FAILED_INVALID_APK; + } finally { + IoUtils.closeQuietly(autoOut); } } |