mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 19:11:16 +00:00
conf: Don't free the constructed string in virDomainGetBlkioParametersAssignFromDef
virTypedParameterAssign steals the string rather than copying it into the typed parameter and thus freeing it leads to a crash when attempting to serialize the results. This was introduced in commit9f50f6e2
and later made an universal helper in32e6339c
. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1351473
This commit is contained in:
parent
d7c40d50d7
commit
cbe4c049d8
@ -24936,7 +24936,7 @@ virDomainGetBlkioParametersAssignFromDef(virDomainDefPtr def,
|
|||||||
if (virTypedParameterAssign(&(params[(*nparams)++]), name, \
|
if (virTypedParameterAssign(&(params[(*nparams)++]), name, \
|
||||||
VIR_TYPED_PARAM_STRING, data) < 0) \
|
VIR_TYPED_PARAM_STRING, data) < 0) \
|
||||||
goto error; \
|
goto error; \
|
||||||
VIR_FREE(data); \
|
data = NULL; \
|
||||||
}
|
}
|
||||||
|
|
||||||
/* blkiotune.device_weight */
|
/* blkiotune.device_weight */
|
||||||
|
Loading…
Reference in New Issue
Block a user