fix leak memory on memcached