mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
tests: virnetdevbandwidthtest: use g_auto
Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
780b5ab62a
commit
3e74bb8321
@ -69,7 +69,7 @@ testVirNetDevBandwidthSet(const void *data)
|
|||||||
const char *iface = info->iface;
|
const char *iface = info->iface;
|
||||||
g_autoptr(virNetDevBandwidth) band = NULL;
|
g_autoptr(virNetDevBandwidth) band = NULL;
|
||||||
g_auto(virBuffer) buf = VIR_BUFFER_INITIALIZER;
|
g_auto(virBuffer) buf = VIR_BUFFER_INITIALIZER;
|
||||||
char *actual_cmd = NULL;
|
g_autofree char *actual_cmd = NULL;
|
||||||
g_autoptr(virCommandDryRunToken) dryRunToken = virCommandDryRunTokenNew();
|
g_autoptr(virCommandDryRunToken) dryRunToken = virCommandDryRunTokenNew();
|
||||||
|
|
||||||
PARSE(info->band, band);
|
PARSE(info->band, band);
|
||||||
@ -96,7 +96,6 @@ testVirNetDevBandwidthSet(const void *data)
|
|||||||
|
|
||||||
ret = 0;
|
ret = 0;
|
||||||
cleanup:
|
cleanup:
|
||||||
VIR_FREE(actual_cmd);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user