client : fixed memleak

Thank you, AMO.

Change-Id: If4b257a5a3914236f4c547f4b74e9ecb40260520