diff options
author | Ronny Chevalier <chevalier.ronny@gmail.com> | 2016-11-05 15:23:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-05 15:23:31 +0100 |
commit | 9bda42660d25da05210bd11e482a8e02c4e6b326 (patch) | |
tree | e74dee3e3db0d16acc0af993cbbf71c34b3d59a0 | |
parent | a3810a08d5a26f3d9ff3902317d8bb0500e8837c (diff) | |
parent | 12104159ed88324fa95505a6a8b333dd92a80368 (diff) |
Merge pull request #4578 from evverx/no-hostname-memleak
journalctl: fix memleak
-rw-r--r-- | src/shared/logs-show.c | 2 |
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; } |