Fix for the "crash --osrelease" option for flattened format dumpfiles

in the unlikely event that the dumpfile header does not contain the
VMCOREINFO note section from the original ELF /proc/vmcore.  Without
the patch, the command displays nothing instead of showing "unknown".
(anderson@redhat.com)
This commit is contained in:
Dave Anderson 2015-07-14 14:56:11 -04:00
parent 94b8342c71
commit 8eb8fcc719
1 changed files with 1 additions and 1 deletions

View File

@ -389,5 +389,5 @@ flattened_format_get_osrelease(char *file)
}
}
fclose(fp);
fclose(pipe);
}