From 74ca738f6a01fb5fc19c5c3899f5cb1fdc1d7f68 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 9 Sep 2015 15:20:10 +0200 Subject: util: introduce safe_fclose() and port everything over to it Adds a coccinelle script to port things over automatically. --- src/journal-remote/journal-gatewayd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/journal-remote') 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); -- cgit v1.2.3