aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorFederico Simoncelli <fsimonce@redhat.com>2012-09-11 10:41:49 -0400
committerEric Blake <eblake@redhat.com>2012-09-11 15:19:30 -0600
commit984a73c0b3c7e724363148f39f44739fe98386b2 (patch)
tree83ac1279d18137f0a5d565255ca4d4028856e4fb /python
parentdocs: page.xsl: fix FAQ link in subdirectories (diff)
downloadlibvirt-984a73c0b3c7e724363148f39f44739fe98386b2.tar.gz
libvirt-984a73c0b3c7e724363148f39f44739fe98386b2.tar.bz2
libvirt-984a73c0b3c7e724363148f39f44739fe98386b2.zip
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>
Diffstat (limited to 'python')
-rw-r--r--python/libvirt-override.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/libvirt-override.c b/python/libvirt-override.c
index bb1d881f1..485ed2888 100644
--- a/python/libvirt-override.c
+++ b/python/libvirt-override.c
@@ -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))