[PATCH 05/12] virStorageSourceGetMetadata: Refactor cleanup