s4:ldb_map Fix use-after-free of memory in ldb_map