Peter Krempa f0430d069a util: storage: Don't leak metadata on repeated calls of virStorageFileGetMetadata
When querying storage metadata after a block job we re-run
virStorageFileGetMetadata on the top level storage file. This means that
the workers (virStorageFileGetMetadataInternal) must not overwrite any
pointers without freeing them.

This was not considered for src->compat and src->features. Fix it and
add a comment mentioning that.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2019-07-18 17:54:22 +02:00
..
2019-07-09 10:27:20 +02:00
2019-06-19 17:12:31 +02:00
2019-06-19 17:12:31 +02:00
2019-06-04 09:29:35 +02:00
2019-06-03 18:07:16 +02:00
2019-06-20 10:29:54 +02:00