hostname: Fix a small memory leak.

Reported by Coverity.

* gettext-tools/src/hostname.c (print_hostname): Free hostname before returning.
This commit is contained in:
Bruno Haible 2025-07-28 16:08:40 +02:00
parent f9e3329954
commit 0f3521607b

View File

@ -507,4 +507,6 @@ print_hostname ()
default:
abort ();
}
free (hostname);
}