]> git.ipfire.org Git - thirdparty/libvirt.git/commit
lxc: Don't leak @veths in virLXCProcessStart
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 25 Jul 2018 12:32:43 +0000 (14:32 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 26 Jul 2018 12:18:06 +0000 (14:18 +0200)
commit696a9faa8ef3a19d366cbcf479c0151eeb5315ca
treeda7846c634a84783c76b4fb0d229cddf15b84f5b
parent9bf5ca8620c0aba912d3a8b9b31b9ca8af85e476
lxc: Don't leak @veths in virLXCProcessStart

The individual strings are freed, but the array is never freed.

 8 bytes in 1 blocks are definitely lost in loss record 28 of 1,098
    at 0x4C2CE3F: malloc (vg_replace_malloc.c:298)
    by 0x4C2F1BF: realloc (vg_replace_malloc.c:785)
    by 0x52C9C92: virReallocN (viralloc.c:245)
    by 0x52C9D88: virExpandN (viralloc.c:294)
    by 0x23414D99: virLXCProcessSetupInterfaces (lxc_process.c:552)
    by 0x23417457: virLXCProcessStart (lxc_process.c:1356)
    by 0x2341F71C: lxcDomainCreateWithFiles (lxc_driver.c:1088)
    by 0x2341F805: lxcDomainCreate (lxc_driver.c:1123)
    by 0x55917EB: virDomainCreate (libvirt-domain.c:6534)
    by 0x1367D1: remoteDispatchDomainCreate (remote_daemon_dispatch_stubs.h:4434)
    by 0x1366EA: remoteDispatchDomainCreateHelper (remote_daemon_dispatch_stubs.h:4410)
    by 0x546FDF1: virNetServerProgramDispatchCall (virnetserverprogram.c:437)

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/lxc/lxc_process.c