Fix memory leak in storage::deserialize