From: Peter Krempa Date: Tue, 17 Jun 2014 08:03:53 +0000 (+0200) Subject: network: bridge: Avoid freeing uninitialized pointer on cleanup path X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b9f8a2f25e56e992add0fff5327638a61973fe34;p=libvirt.git network: bridge: Avoid freeing uninitialized pointer on cleanup path The cleanup path in networkBuildDhcpDaemonCommandLine could cause a crash by freeing uninitialized pointer. --- diff --git a/src/network/bridge_driver.c b/src/network/bridge_driver.c index 4fc4c9a66b..8de7a5920a 100644 --- a/src/network/bridge_driver.c +++ b/src/network/bridge_driver.c @@ -1252,7 +1252,7 @@ networkBuildDhcpDaemonCommandLine(virNetworkObjPtr network, int ret = -1; char *configfile = NULL; char *configstr = NULL; - char *leaseshelper_path; + char *leaseshelper_path = NULL; network->dnsmasqPid = -1;