OSDN Git Service
(root)
/
android-x86
/
system-extras.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cecfbe
)
ANRdaemon: Don't leak file in error case
author
Greg Kaiser
<gkaiser@google.com>
Thu, 11 Aug 2016 18:40:44 +0000
(11:40 -0700)
committer
Greg Kaiser
<gkaiser@google.com>
Thu, 11 Aug 2016 18:40:44 +0000
(11:40 -0700)
Change-Id: Ie57e06fac90629dfadc04510b2468f17f68fce90
ANRdaemon/ANRdaemon.cpp
patch
|
blob
|
history
diff --git
a/ANRdaemon/ANRdaemon.cpp
b/ANRdaemon/ANRdaemon.cpp
index
50aa04e
..
1822704
100644
(file)
--- a/
ANRdaemon/ANRdaemon.cpp
+++ b/
ANRdaemon/ANRdaemon.cpp
@@
-143,6
+143,7
@@
static void get_cpu_stat(cpu_stat_t *cpu) {
* is_heavy_loaded() will return false.
*/
ALOGE("Error in getting cpu status. Skipping this check.");
+ fclose(fp);
return;
}