diff options
author | Daniel Mack <github@zonque.org> | 2015-09-09 15:45:03 +0200 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2015-09-09 15:45:03 +0200 |
commit | 01da201420edfb2a57e384f109def05f25429305 (patch) | |
tree | 1c3090f3b5200ba62613285553afa0f7a6d30b9a /src/journal-remote | |
parent | 37b76fd3ee5a03d76786e7bd1e0f8596e6ce47d6 (diff) | |
parent | 74ca738f6a01fb5fc19c5c3899f5cb1fdc1d7f68 (diff) |
Merge pull request #1218 from poettering/safe-fclose
util: introduce safe_fclose() and port everything over to it
Diffstat (limited to 'src/journal-remote')
-rw-r--r-- | src/journal-remote/journal-gatewayd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/journal-remote/journal-gatewayd.c b/src/journal-remote/journal-gatewayd.c index bb762c8832..4e5572db0b 100644 --- a/src/journal-remote/journal-gatewayd.c +++ b/src/journal-remote/journal-gatewayd.c @@ -105,8 +105,7 @@ static void request_meta_free( sd_journal_close(m->journal); - if (m->tmp) - fclose(m->tmp); + safe_fclose(m->tmp); free(m->cursor); free(m); |