Fixed some memory leak in tokyo cabinet storage