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