]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virExecWithHook: avoid leak on OOM error path
authorJim Meyering <meyering@redhat.com>
Thu, 4 Feb 2010 11:25:34 +0000 (12:25 +0100)
committerJim Meyering <meyering@redhat.com>
Thu, 4 Feb 2010 19:00:07 +0000 (20:00 +0100)
commit6eed3feafbc5a677ec85e0bd8d5cfba60a5536bb
treec39308e35a06b7a024198c262f2e166133d17a65
parentfd10c4e1ee2541b9e7c033675cf2fce4e8c26587
virExecWithHook: avoid leak on OOM error path

* src/util/util.c (virExecWithHook): Free argv_str string before
returning upon failure to allocate space for environment.
src/util/util.c