summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@android.com>2010-11-15 11:12:42 -0800
committerBrad Fitzpatrick <bradfitz@android.com>2010-11-15 11:12:42 -0800
commit725d8f06ecd31cd2e31eaa06e52de052dd07c5c7 (patch)
treea6c54c95aa0d4dd311d78bd4abd17c64a861b44f /services
parent4543e0de206e362a59060b64e02b4b208b1e08f6 (diff)
downloadframeworks_base-725d8f06ecd31cd2e31eaa06e52de052dd07c5c7.zip
frameworks_base-725d8f06ecd31cd2e31eaa06e52de052dd07c5c7.tar.gz
frameworks_base-725d8f06ecd31cd2e31eaa06e52de052dd07c5c7.tar.bz2
Close some things in system_server that CloseGuard found.
Change-Id: I788c022235caddcb1972a34131442a683cd51eb5
Diffstat (limited to 'services')
-rw-r--r--services/java/com/android/server/BackupManagerService.java1
-rw-r--r--services/java/com/android/server/PackageManagerService.java1
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) {
}