From: Bruno Haible Date: Mon, 28 Jul 2025 14:08:40 +0000 (+0200) Subject: hostname: Fix a small memory leak. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0f3521607bf3f7f96d13b299795619e0917ab573;p=thirdparty%2Fgettext.git hostname: Fix a small memory leak. Reported by Coverity. * gettext-tools/src/hostname.c (print_hostname): Free hostname before returning. --- diff --git a/gettext-tools/src/hostname.c b/gettext-tools/src/hostname.c index 98fe8baf9..c2faf3da6 100644 --- a/gettext-tools/src/hostname.c +++ b/gettext-tools/src/hostname.c @@ -507,4 +507,6 @@ print_hostname () default: abort (); } + + free (hostname); }