mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-12 15:52:55 +00:00
util: avoid memory leak
Leak in pciGetVirtualFunctionIndex present since commit 17d64ca. * src/util/pci.c: fix memory leak. Signed-off-by: Alex Jia <ajia@redhat.com>
This commit is contained in:
parent
809999b5a3
commit
d02c4a1877
@ -1965,6 +1965,7 @@ out:
|
||||
for (i = 0; i < num_virt_fns; i++)
|
||||
VIR_FREE(virt_fns[i]);
|
||||
|
||||
VIR_FREE(virt_fns);
|
||||
VIR_FREE(vf_bdf);
|
||||
|
||||
return ret;
|
||||
|
Loading…
x
Reference in New Issue
Block a user