43fe83
From cacfd6f28a2adb52687d974072d66b213304b1be Mon Sep 17 00:00:00 2001
43fe83
Message-Id: <cacfd6f28a2adb52687d974072d66b213304b1be.1379597659.git.jdenemar@redhat.com>
43fe83
From: =?UTF-8?q?J=C3=A1n=20Tomko?= <jtomko@redhat.com>
43fe83
Date: Mon, 16 Sep 2013 19:32:08 +0200
43fe83
Subject: [PATCH] Free slicename in virSystemdCreateMachine
43fe83
43fe83
https://bugzilla.redhat.com/show_bug.cgi?id=1008619
43fe83
43fe83
1,003 bytes in 1 blocks are definitely lost in loss record 599 of 635
43fe83
==404== by 0x50728A7: virBufferAddChar (virbuffer.c:185)
43fe83
==404== by 0x50BC466: virSystemdEscapeName (virsystemd.c:67)
43fe83
==404== by 0x50BC6B2: virSystemdMakeSliceName (virsystemd.c:108)
43fe83
==404== by 0x50BC870: virSystemdCreateMachine (virsystemd.c:169)
43fe83
==404== by 0x5078267: virCgroupNewMachine (vircgroup.c:1498)
43fe83
(cherry picked from commit 09b48562aac12387a5ff9ac2f27f9a60490f41ee)
43fe83
---
43fe83
 src/util/virsystemd.c | 1 +
43fe83
 1 file changed, 1 insertion(+)
43fe83
43fe83
diff --git a/src/util/virsystemd.c b/src/util/virsystemd.c
43fe83
index 251b846..d0063a1 100644
43fe83
--- a/src/util/virsystemd.c
43fe83
+++ b/src/util/virsystemd.c
43fe83
@@ -242,5 +242,6 @@ cleanup:
43fe83
     VIR_FREE(username);
43fe83
     VIR_FREE(creatorname);
43fe83
     VIR_FREE(machinename);
43fe83
+    VIR_FREE(slicename);
43fe83
     return ret;
43fe83
 }
43fe83
-- 
43fe83
1.8.3.2
43fe83