Merge pull request #1218 from poettering/safe-fclose

util: introduce safe_fclose() and port everything over to it
This commit is contained in:
Daniel Mack
2015-09-09 15:45:03 +02:00
14 changed files with 79 additions and 49 deletions
+1 -4
View File
@@ -457,10 +457,7 @@ int main(int argc, char *argv[]) {
ps = ps->next_ps;
ps->schedstat = safe_close(ps->schedstat);
ps->sched = safe_close(ps->sched);
if (ps->smaps) {
fclose(ps->smaps);
ps->smaps = NULL;
}
ps->smaps = safe_fclose(ps->smaps);
}
if (!of) {