add free memory with check failed
add memory leak fix from master
add get client from slot