mirror of
https://https.git.savannah.gnu.org/git/gettext.git
synced 2026-01-26 15:39:11 +00:00
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:
parent
f9e3329954
commit
0f3521607b
@ -507,4 +507,6 @@ print_hostname ()
|
||||
default:
|
||||
abort ();
|
||||
}
|
||||
|
||||
free (hostname);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user