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

[libvirt] [PATCH] Free slicename in virSystemdCreateMachine



1,003 bytes in 1 blocks are definitely lost in loss record 599 of 635
==404== by 0x50728A7: virBufferAddChar (virbuffer.c:185)
==404== by 0x50BC466: virSystemdEscapeName (virsystemd.c:67)
==404== by 0x50BC6B2: virSystemdMakeSliceName (virsystemd.c:108)
==404== by 0x50BC870: virSystemdCreateMachine (virsystemd.c:169)
==404== by 0x5078267: virCgroupNewMachine (vircgroup.c:1498)
---
 src/util/virsystemd.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/util/virsystemd.c b/src/util/virsystemd.c
index 7674cc6..e72b7f0 100644
--- a/src/util/virsystemd.c
+++ b/src/util/virsystemd.c
@@ -239,5 +239,6 @@ cleanup:
     VIR_FREE(username);
     VIR_FREE(creatorname);
     VIR_FREE(machinename);
+    VIR_FREE(slicename);
     return ret;
 }
-- 
1.8.1.5


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