]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Free slicename in virSystemdCreateMachine
authorJán Tomko <jtomko@redhat.com>
Mon, 16 Sep 2013 13:27:42 +0000 (15:27 +0200)
committerJán Tomko <jtomko@redhat.com>
Tue, 15 Oct 2013 11:13:50 +0000 (13:13 +0200)
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

index 11d1153045173a36e3ffcf9bb4507008dbf7b083..bf0af77fde8a27e9f4242dd5210ff3d4b0a4fb68 100644 (file)
@@ -155,5 +155,6 @@ cleanup:
     VIR_FREE(username);
     VIR_FREE(creatorname);
     VIR_FREE(machinename);
+    VIR_FREE(slicename);
     return ret;
 }