summaryrefslogtreecommitdiff
path: root/src/readahead/readahead-replay.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-06-22 00:03:25 +0200
committerLennart Poettering <lennart@poettering.net>2012-06-22 00:03:25 +0200
commitebfb7506fee66c3bffb250fe557893634171e2c8 (patch)
tree6c7d1253ac4b9e81bfbe607b766d30de903505cb /src/readahead/readahead-replay.c
parent97fa0e708f33cdd88b2d78a46963bed8dd873697 (diff)
readahead: make sure to close pack file before exiting, to be valgrind clean
Diffstat (limited to 'src/readahead/readahead-replay.c')
-rw-r--r--src/readahead/readahead-replay.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/readahead/readahead-replay.c b/src/readahead/readahead-replay.c
index 6e6db601d4..7bd079aae5 100644
--- a/src/readahead/readahead-replay.c
+++ b/src/readahead/readahead-replay.c
@@ -155,7 +155,8 @@ static int replay(const char *root) {
goto finish;
}
- if ((!(pack = fopen(pack_fn, "re")))) {
+ pack = fopen(pack_fn, "re");
+ if (!pack) {
if (errno == ENOENT)
log_debug("No pack file found.");
else {