Free of recvBuff of last commit was bad and segfaulted. So I reverted it. But freed json now.