Free the LevelDB-allocated strings

LevelDB likes to allocate memory for us, so make sure we do free it.