ext: leveldb: fixed leak in write_path