OSDN Git Service
(root)
/
pinky-bar
/
pinky-bar.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
006e0f2
)
Stay cheesy
author
wifiextender
<router@archlinux.info>
Fri, 5 Aug 2016 21:20:27 +0000
(23:20 +0200)
committer
wifiextender
<router@archlinux.info>
Fri, 5 Aug 2016 21:20:27 +0000
(23:20 +0200)
src/functions.c
patch
|
blob
|
history
diff --git
a/src/functions.c
b/src/functions.c
index
c232277
..
de5e45e
100644
(file)
--- a/
src/functions.c
+++ b/
src/functions.c
@@
-146,11
+146,13
@@
get_cores_load(char *str1, char *str2) {
}
if (NULL == fgets(buf, VLA, fp)) {
+ fclose(fp);
exit_with_err(ERR, "reached /proc/stat EOF");
}
for (x = 0; x < MAX_CORES; x++) {
if (NULL == fgets(buf, VLA, fp)) {
+ fclose(fp);
exit_with_err(ERR, "reached /proc/stat EOF");
}