libite:rsync.c - Break out nested function.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
svc.c - Break out nested function.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
helpers.c:run() - Fix resource and memory leaks.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
helpers.c:set_hostname() - Fix resource and memory leaks.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>