From: Karel Zak Date: Wed, 12 Mar 2025 12:55:12 +0000 (+0100) Subject: test_sysinfo: remove memory lea [coverity scan] X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=87c1ea68155b88ccdc07069c267a3121468d72c8;p=thirdparty%2Futil-linux.git test_sysinfo: remove memory lea [coverity scan] Signed-off-by: Karel Zak --- diff --git a/tests/helpers/test_sysinfo.c b/tests/helpers/test_sysinfo.c index 9f9f0fd0f..1559d471f 100644 --- a/tests/helpers/test_sysinfo.c +++ b/tests/helpers/test_sysinfo.c @@ -215,6 +215,7 @@ static int hlp_hostname(void) { char * h = xgethostname(); printf("%s\n", h); + free(h); return 0; }