Merge pull request #4578 from evverx/no-hostname-memleak

journalctl: fix memleak
This commit is contained in:
Ronny Chevalier
2016-11-05 15:23:31 +01:00
committed by GitHub
+1 -1
View File
@@ -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;
}