]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix memory leak in __virExec
authorMatthias Bolte <matthias.bolte@googlemail.com>
Sat, 30 Apr 2011 10:06:29 +0000 (12:06 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Sat, 30 Apr 2011 15:37:29 +0000 (17:37 +0200)
commit9d50b323a9e2dc4e13e2dc7ecb99cf9dee309f59
tree2c53905bbe2ae7bdc1b211b217c8cde894ddea6c
parent701bee0193fc3ed4695959b12a23ba3cb204e6cb
Fix memory leak in __virExec

Commit e0d014f2379dd made binary potentially allocated on the heap.
It was freed in the parent in the error path, but not in the success path
that doesn't goto the cleanup label.

Found by 'make -C tests valgrind'.
src/util/util.c