diff options
Diffstat (limited to 'src/journal-remote/journal-remote.c')
-rw-r--r-- | src/journal-remote/journal-remote.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/journal-remote/journal-remote.c b/src/journal-remote/journal-remote.c index 995083655a..81f30748e7 100644 --- a/src/journal-remote/journal-remote.c +++ b/src/journal-remote/journal-remote.c @@ -203,10 +203,9 @@ static int init_writer_hashmap(RemoteServer *s) { return 0; } -static int get_writer(RemoteServer *s, const char *host, - Writer **writer) { +static int get_writer(RemoteServer *s, const char *host, Writer **writer) { + _cleanup_(writer_unrefp) Writer *w = NULL; const void *key; - _cleanup_writer_unref_ Writer *w = NULL; int r; switch(arg_split_mode) { |