]> git.ipfire.org Git - thirdparty/libvirt.git/commit
cpu_x86: Fix memory leak - virCPUx86GetHost
authorJohn Ferlan <jferlan@redhat.com>
Fri, 21 Jun 2019 17:07:15 +0000 (13:07 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 24 Jun 2019 21:46:28 +0000 (17:46 -0400)
commit5acb4eede23bcd5bc75193ea21542e0fb04b6e45
treedd7ba564ce924e157a106bd47bf7e1292951394c
parent0a5a5477258dc494ccc9536813bdede7ab76aa26
cpu_x86: Fix memory leak - virCPUx86GetHost

Commit 56b254dcc called virCPUx86DataAdd, but returned -1 directly
without calling the virCPUx86DataFree.

Found by Coverity.

Signed-off-by: John Ferlan <jferlan@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/cpu/cpu_x86.c