diff options
Diffstat (limited to 'src/readahead')
-rw-r--r-- | src/readahead/readahead-analyze.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/readahead/readahead-analyze.c b/src/readahead/readahead-analyze.c index 11b2b2dc11..9a929c0937 100644 --- 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; } |