Critical point, malloc in both server and client