chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
loginctl: show pager also for status command
[elogind.git]
/
src
/
readahead
/
readahead-analyze.c
diff --git
a/src/readahead/readahead-analyze.c
b/src/readahead/readahead-analyze.c
index 11b2b2dc11819e385a9f323433c4ffb5015d82ec..9a929c0937f9cf212196bc545d531fbb4997bac3 100644
(file)
--- a/
src/readahead/readahead-analyze.c
+++ b/
src/readahead/readahead-analyze.c
@@
-144,6
+144,7
@@
int main_analyze(const char *pack_path) {
return EXIT_SUCCESS;
fail:
- fclose(pack);
+ if(pack)
+ fclose(pack);
return EXIT_FAILURE;
}