network: bridge: Avoid freeing uninitialized pointer on cleanup path

The cleanup path in networkBuildDhcpDaemonCommandLine could cause a
crash by freeing uninitialized pointer.
This commit is contained in:
Peter Krempa 2014-06-17 10:03:53 +02:00
parent 0657ed2a5c
commit b9f8a2f25e

View File

@ -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;