]> xenbits.xensource.com Git - libvirt.git/commit
vshCommandParse: placate coverity
authorJim Meyering <meyering@redhat.com>
Tue, 16 Feb 2010 13:34:48 +0000 (14:34 +0100)
committerJim Meyering <meyering@redhat.com>
Tue, 16 Feb 2010 17:17:44 +0000 (18:17 +0100)
commit7c5735dc2a59cd6d5576daa272d6de31206390f9
tree17b4dbb40f9c4c6c9b97507215b730a950967fac
parent7ac27870194c11a2396c740b67e714a692d3c9be
vshCommandParse: placate coverity

There is no real leak here, but Coverity-Prevent thinks there is.
It does not see that while there are four ways to return from
vshCommandGetToken with VSH_TK_END, none of them results in allocation
of a result.
* tools/virsh.c (vshCommandParse): Add a (currently) useless VIR_FREE,
to ensure that we never leak when vshCommandGetToken returns VSH_TK_END.
tools/virsh.c