diff --git a/src/util/virstoragefile.c b/src/util/virstoragefile.c index 3da9073dff..5b6b2f58ec 100644 --- a/src/util/virstoragefile.c +++ b/src/util/virstoragefile.c @@ -817,6 +817,7 @@ virStorageFileGetMetadataInternal(virStorageSourcePtr meta, goto cleanup; } + VIR_FREE(meta->backingStoreRaw); if (fileTypeInfo[meta->format].getBackingStore != NULL) { int store = fileTypeInfo[meta->format].getBackingStore(&meta->backingStoreRaw, backingFormat,