]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Fix possible memleak in capabilities
authorMartin Kletzander <mkletzan@redhat.com>
Wed, 29 Mar 2017 11:36:15 +0000 (13:36 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Fri, 7 Apr 2017 06:49:34 +0000 (08:49 +0200)
commit6369ee0483b99ec4d2e624e9a32e35b7bdd9ab8a
treee0633a3857a701d35ff22186b2bd1604f68a70de
parentae102b5d7bccd29bc6015a3e0acefeaa90d097ac
conf: Fix possible memleak in capabilities

If formatting NUMA topology fails, the function returns immediatelly,
but the buffer structure allocated on the stack references lot of
heap-allocated memory and that would get lost in such case.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/conf/capabilities.c