]> xenbits.xensource.com Git - libvirt.git/commit
tests: Resolve Coverity RESOURCE_LEAK in commandhelper
authorWang Rui <moon.wangrui@huawei.com>
Wed, 3 Sep 2014 18:59:31 +0000 (14:59 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 3 Sep 2014 19:00:18 +0000 (15:00 -0400)
commitcd2d7c6c3a197639e3c72d01aa0082a435219a55
treecd3705aa7daffc2d848a6391a1537cbe4f019354
parent0c07d360f68e5075ac03ae061f0598d654a0e009
tests: Resolve Coverity RESOURCE_LEAK in commandhelper

Coverity determined that 'log' and 'newenv' were not freed in
some cases. Free them in 'error' branch and normal branch.

Signed-off-by: Wang Rui <moon.wangrui@huawei.com>
tests/commandhelper.c