From 3e2d637458a050030402fc90e6d7d176fd580d13 Mon Sep 17 00:00:00 2001 From: John Ferlan Date: Jan 14 2016 10:54:58 +0000 Subject: conf: Initialize 'deflate' for balloon parse XML Commit id '7bf3198df' neglected to initialize deflate leading to a possibility if model allocation/checks fail, then the VIR_FREE(deflate) would be erroneous. Noted by Jan Tomko. --- diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 1e78da1..a9706b0 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -11354,7 +11354,7 @@ virDomainMemballoonDefParseXML(xmlNodePtr node, unsigned int flags) { char *model; - char *deflate; + char *deflate = NULL; virDomainMemballoonDefPtr def; xmlNodePtr save = ctxt->node; unsigned int period = 0;