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

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



* src/util/pci.c: fix memory leak.

Signed-off-by: Alex Jia <ajia redhat com>
---
 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);
     VIR_FREE(vf_bdf);
 
     return ret;
-- 
1.7.1


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