[PATCH] fix memleak in linuxParseCPUmap

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

 



---
 src/nodeinfo.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/nodeinfo.c b/src/nodeinfo.c
index 7e993a9..e842474 100644
--- a/src/nodeinfo.c
+++ b/src/nodeinfo.c
@@ -605,6 +605,7 @@ linuxParseCPUmap(int *max_cpuid, const char *path)
     }
     *max_cpuid = max_id;
 
+    VIR_FREE(str);
     return map;
 
 error:
-- 
1.7.1

--
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]