]> git.ipfire.org Git - thirdparty/libvirt.git/commit
command: avoid leak on failure
authorEric Blake <eblake@redhat.com>
Thu, 2 Jun 2011 21:50:11 +0000 (15:50 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 3 Jun 2011 14:11:42 +0000 (08:11 -0600)
commitbb8895290cff13048d03753119cbeb207f668ed9
treeadc6dc8d3a6e31ab25f769f07e1414c2d5e52436
parent6d68e0df72c3c32d9536b440b0de8052888a5f7c
command: avoid leak on failure

Detected by Coverity.  While it is possible on OOM condition, as
well as with bad code that passes binary == NULL, it is unlikely
to be encountered in the wild.

* src/util/command.c (virCommandNewArgList): Don't leak memory.
src/util/command.c