]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
leaseshelper: fix crash
authorPavel Hrdina <phrdina@redhat.com>
Wed, 11 Jun 2014 15:17:15 +0000 (17:17 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Wed, 11 Jun 2014 15:21:11 +0000 (17:21 +0200)
commita93504cca4c1b95421ba360ea22a98f978bf1b2a
tree3f62d5af43ef5364ddc3a035888f8b487d7ec06c
parentde43582bf51fb5d857ee5b615c6514061213fdec
leaseshelper: fix crash

Commit baafe668 introduced new leaseshelper with a crash of freeing
env string. Calling 'getenv()' inside 'virGetEnvAllowSUID()' may
return a static string and we definitely should not free it.

The author probably want to free the copy of that string.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/network/leaseshelper.c