readahead-analyze: don't call fclose on null
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
032f81645b
commit
403a56bf81
@@ -144,6 +144,7 @@ int main_analyze(const char *pack_path) {
|
||||
return EXIT_SUCCESS;
|
||||
|
||||
fail:
|
||||
fclose(pack);
|
||||
if(pack)
|
||||
fclose(pack);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user