render / rpms / libvirt

Forked from rpms/libvirt 10 months ago
Clone
Blob Blame History Raw
From cacfd6f28a2adb52687d974072d66b213304b1be Mon Sep 17 00:00:00 2001
Message-Id: <cacfd6f28a2adb52687d974072d66b213304b1be.1379597659.git.jdenemar@redhat.com>
From: =?UTF-8?q?J=C3=A1n=20Tomko?= <jtomko@redhat.com>
Date: Mon, 16 Sep 2013 19:32:08 +0200
Subject: [PATCH] Free slicename in virSystemdCreateMachine

https://bugzilla.redhat.com/show_bug.cgi?id=1008619

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)
(cherry picked from commit 09b48562aac12387a5ff9ac2f27f9a60490f41ee)
---
 src/util/virsystemd.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/util/virsystemd.c b/src/util/virsystemd.c
index 251b846..d0063a1 100644
--- a/src/util/virsystemd.c
+++ b/src/util/virsystemd.c
@@ -242,5 +242,6 @@ cleanup:
     VIR_FREE(username);
     VIR_FREE(creatorname);
     VIR_FREE(machinename);
+    VIR_FREE(slicename);
     return ret;
 }
-- 
1.8.3.2