mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
python: Initialize new_params in virDomainSetSchedulerParameters
The new_params variable must be initialized in case the virDomainGetSchedulerParameters call fails and we hit the cleanup section before actually allocating the new parameters. Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
This commit is contained in:
parent
0b2c40d455
commit
984a73c0b3
@ -700,7 +700,7 @@ libvirt_virDomainSetSchedulerParameters(PyObject *self ATTRIBUTE_UNUSED,
|
||||
int i_retval;
|
||||
int nparams = 0;
|
||||
Py_ssize_t size = 0;
|
||||
virTypedParameterPtr params, new_params;
|
||||
virTypedParameterPtr params, new_params = NULL;
|
||||
|
||||
if (!PyArg_ParseTuple(args, (char *)"OO:virDomainSetScedulerParameters",
|
||||
&pyobj_domain, &info))
|
||||
|
Loading…
Reference in New Issue
Block a user