evan/memcached — pull request #121 by plerohellec (2013-05-27 17:05:44+00:00)
Title: Make sure memcahed_fetch arguments have default values

Issue 120: move local variables out of block to prevent them going out of scope. arg3 points to length and if memcached_fetch_rvalue fails to set it, it will point to a random value in the stack, which ruby_str_new will try to allocate with unpredictable results, if memcached_fetch_rvalue does not set it.