Re: [PATCH 4/5] util: avoid memory leak

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/18/2011 10:36 AM, ajia@xxxxxxxxxx wrote:
* src/util/pci.c: fix memory leak.

Signed-off-by: Alex Jia<ajia@xxxxxxxxxx>
---
  src/util/pci.c |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/util/pci.c b/src/util/pci.c
index 9873f33..8d8e157 100644
--- a/src/util/pci.c
+++ b/src/util/pci.c
@@ -1965,6 +1965,7 @@ out:
      for (i = 0; i<  num_virt_fns; i++)
           VIR_FREE(virt_fns[i]);

+    VIR_FREE(virt_fns);

ACK and pushed; leak introduced in pciGetVirtualFunctionIndex, introduced by commit 17d64ca (unreleased).

--
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]