Hi!

You should look at the manpage on memcached_get() to understand its behavior 
(and it does allocate memory and you are expected to deallocate it).

http://docs.libmemcached.org/memcached_get.html

Look at memcached_fetch_result() if you are wanting to use an interface that 
will handle the cleanup of memory allocation.

Cheers, 
        -Brian

On Sep 13, 2011, at 2:04 AM, 然 安 wrote:

> memcached_get

Reply via email to