]> git.ipfire.org Git - thirdparty/libvirt.git/commit
network: bridge: Avoid memory leak from networkBuildDhcpDaemonCommandLine
authorPeter Krempa <pkrempa@redhat.com>
Tue, 3 Jun 2014 12:34:23 +0000 (14:34 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 3 Jun 2014 12:34:23 +0000 (14:34 +0200)
commit23c2763b4fe1820375e51d52813845dfe4657056
treedf5c4045e25073c11e537ea2808e68e507a7d5b7
parent835dc0133f6cbe212e938a4979279688c3f45410
network: bridge: Avoid memory leak from networkBuildDhcpDaemonCommandLine

If the leasehelper_path couldn't be found the code would leak the
freshly constructed command structure. Re-arrange code to avoid the
problem.

Found by coverity, broken by baafe668fa56767c031468ccd5df3e62eaa11370.
src/network/bridge_driver.c