]> git.ipfire.org Git - thirdparty/libvirt.git/commit
openvzGetVEID: don't leak (memory + file descriptor)
authorJim Meyering <meyering@redhat.com>
Thu, 25 Feb 2010 18:24:50 +0000 (19:24 +0100)
committerJim Meyering <meyering@redhat.com>
Thu, 25 Feb 2010 18:28:59 +0000 (19:28 +0100)
commitf3439c7eae46681eacf5b469a6f0e22cb8fec1b4
tree118b88a52d08e401f62e695a4f8635538bf240c5
parent8ac0334ebd1ffdb7391288aaafdd8e3f7bc32d57
openvzGetVEID: don't leak (memory + file descriptor)

* src/openvz/openvz_conf.c (openvzGetVEID): Always call fclose.
Diagnose parse failure also when vzlist output is empty.
If somehow we read a -1, diagnose that (albeit as a parse failure).
src/openvz/openvz_conf.c