generator: destroy header buffer
balancer: fix NULL sockaddr checks