lib/libknc.c: Fix memory leak.