mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-27 07:22:07 +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);
|
virBitmapFree(target->features);
|
||||||
target->features = meta->features;
|
VIR_STEAL_PTR(target->features, meta->features);
|
||||||
meta->features = NULL;
|
|
||||||
|
|
||||||
if (meta->compat) {
|
if (meta->compat) {
|
||||||
VIR_FREE(target->compat);
|
VIR_FREE(target->compat);
|
||||||
target->compat = meta->compat;
|
VIR_STEAL_PTR(target->compat, meta->compat);
|
||||||
meta->compat = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
|
Loading…
Reference in New Issue
Block a user