Fix memory leak occurring when a plugin accesses to config key repeatedly.

Please see my gist for details https://gist.github.com/sonots/7982855