diff options
-rw-r--r-- | services/java/com/android/server/BackupManagerService.java | 1 | ||||
-rw-r--r-- | services/java/com/android/server/PackageManagerService.java | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/services/java/com/android/server/BackupManagerService.java b/services/java/com/android/server/BackupManagerService.java index 90ebf3f..6a86076 100644 --- a/services/java/com/android/server/BackupManagerService.java +++ b/services/java/com/android/server/BackupManagerService.java @@ -585,6 +585,7 @@ class BackupManagerService extends IBackupManager.Stub { } } } + tf.close(); } catch (FileNotFoundException fnf) { // Probably innocuous Slog.v(TAG, "No ancestral data"); diff --git a/services/java/com/android/server/PackageManagerService.java b/services/java/com/android/server/PackageManagerService.java index 4707bbf..cd58284 100644 --- a/services/java/com/android/server/PackageManagerService.java +++ b/services/java/com/android/server/PackageManagerService.java @@ -7334,6 +7334,7 @@ class PackageManagerService extends IPackageManager.Stub { byte[] data = new byte[avail]; in.read(data); pw.print(new String(data)); + in.close(); } catch (FileNotFoundException e) { } catch (IOException e) { } |