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

[libvirt] [PATCH] fix memleak in linuxParseCPUmap



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


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