helpers.c:set_hostname() - Fix resource and memory leaks.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2014-10-31 15:26:49 +01:00
1 parent 2fdd64a2d8
commit 8247344f0d
3 files changed
+15 -12

No files matched your search

+1 -1
View File
@@ -250,7 +250,7 @@ int main(int argc, char* argv[])
run("/sbin/sysctl -e -p /etc/sysctl.conf >/dev/null");
/* Set initial hostname. */
set_hostname(hostname);
set_hostname(&hostname);
ifconfig("lo", "127.0.0.1", "255.0.0.0", 1);
if (network)