Freed the variables that were trouble in TCP server