mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 03:21:44 +03:00
storage: Use VIR_STEAL_PTR in storageBackendProbeTarget
Signed-off-by: John Ferlan <jferlan@redhat.com> Reviewed-by: Erik Skultety <eskultet@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
5f02df444b
commit
9fbb035e6f
@ -3492,13 +3492,11 @@ storageBackendProbeTarget(virStorageSourcePtr target,
|
||||
}
|
||||
|
||||
virBitmapFree(target->features);
|
||||
target->features = meta->features;
|
||||
meta->features = NULL;
|
||||
VIR_STEAL_PTR(target->features, meta->features);
|
||||
|
||||
if (meta->compat) {
|
||||
VIR_FREE(target->compat);
|
||||
target->compat = meta->compat;
|
||||
meta->compat = NULL;
|
||||
VIR_STEAL_PTR(target->compat, meta->compat);
|
||||
}
|
||||
|
||||
cleanup:
|
||||
|
Loading…
Reference in New Issue
Block a user