client: fix bug: free fixed memory