bin/knc.c: close fd on errors.
bin/knc.c: daemonise code leaked an fd.
bin/knc.c: another fd leak.
test/unit.c: Fix printf(3) format strings.
bin/gssstdio.c: check for malloc failure.
test/unit-simple.c: missing check for malloc(3) failure.
lib/libknc.c: put in an assertion to add a bit of sanity.
test/servefile.c: fix use of unitialised structure.