Fix server segfault when free()'ing socket structures.
Fix server segfault when free()'ing socket structures.

lees0414/EUproject,alco90/soml,alco90/soml,lees0414/EUproject,lees0414/EUproject,alco90/soml,lees0414/EUproject,lees0414/EUproject,alco90/soml,mytestbed/oml,mytestbed/oml,mytestbed/oml,mytestbed/oml,mytestbed/oml,alco90/soml