1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-06 01:57:47 +03:00

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
commit 9bda42660d

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;
}