summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonny Chevalier <chevalier.ronny@gmail.com>2016-11-05 15:23:31 +0100
committerGitHub <noreply@github.com>2016-11-05 15:23:31 +0100
commit9bda42660d25da05210bd11e482a8e02c4e6b326 (patch)
treee74dee3e3db0d16acc0af993cbbf71c34b3d59a0
parenta3810a08d5a26f3d9ff3902317d8bb0500e8837c (diff)
parent12104159ed88324fa95505a6a8b333dd92a80368 (diff)
Merge pull request #4578 from evverx/no-hostname-memleak
journalctl: fix memleak
-rw-r--r--src/shared/logs-show.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c
index f9d9c4ed62..5ad5ade31e 100644
--- a/src/shared/logs-show.c
+++ b/src/shared/logs-show.c
@@ -418,7 +418,7 @@ static int output_short(
if (flags & OUTPUT_NO_HOSTNAME) {
/* Suppress display of the hostname if this is requested. */
- hostname = NULL;
+ hostname = mfree(hostname);
hostname_len = 0;
}