libknc: library was leaking {net, and local}cookie.
libknc: knc_state_command() leaked a little.