From 5adb34f022bdc856e98483579a299f89a3c28d5c Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Thu, 25 Apr 2013 11:35:12 -0700 Subject: Always close incoming PFD to avoid leaking. Change-Id: I9559bb1e83c9bf2f9fd2af9c7b0d8b9e3aadc4ae --- .../src/com/android/defcontainer/DefaultContainerService.java | 2 ++ 1 file changed, 2 insertions(+) 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); } } -- cgit v1.1