libvirt/src/logging
Michal Privoznik c03fbecc7c virLogManagerDomainReadLogFile: Don't do dummy allocs
Since we pass dummy variables @fdout and @fdoutlen into
virNetClientProgramCall() we make it alloc @fdout array (even
though it's an array of 0 elements since vitlogd can hardly pass
us some FDs at this stage). Nevertheless, it's an allocation not
followed by free():

==29385== 0 bytes in 60 blocks are definitely lost in loss record 2 of 1,009
==29385==    at 0x4C2C070: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==29385==    by 0x54B99EF: virAllocN (viralloc.c:191)
==29385==    by 0x56821B1: virNetClientProgramCall (virnetclientprogram.c:359)
==29385==    by 0x563B304: virLogManagerDomainReadLogFile (log_manager.c:272)
==29385==    by 0x217CD613: qemuDomainLogContextRead (qemu_domain.c:2485)
==29385==    by 0x217EDC76: qemuProcessReadLog (qemu_process.c:1660)
==29385==    by 0x217EDE1D: qemuProcessReportLogError (qemu_process.c:1696)
==29385==    by 0x217EE8C1: qemuProcessWaitForMonitor (qemu_process.c:1957)
==29385==    by 0x217F6636: qemuProcessLaunch (qemu_process.c:4955)
==29385==    by 0x217F71A4: qemuProcessStart (qemu_process.c:5152)
==29385==    by 0x21846582: qemuDomainObjStart (qemu_driver.c:7396)
==29385==    by 0x218467DE: qemuDomainCreateWithFlags (qemu_driver.c:7450)

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
2016-01-18 17:14:16 +01:00
..
log_daemon_config.c Import stripped down virtlockd code as basis of virtlogd 2015-11-26 14:28:55 +00:00
log_daemon_config.h Import stripped down virtlockd code as basis of virtlogd 2015-11-26 14:28:55 +00:00
log_daemon_dispatch.c logging: validate flags passed from client in virtlogd 2015-12-07 17:30:07 +00:00
log_daemon_dispatch.h Import stripped down virtlockd code as basis of virtlogd 2015-11-26 14:28:55 +00:00
log_daemon.c logging: avoid variables called 'daemon' due to function clash 2015-11-27 09:27:53 +00:00
log_daemon.h logging: avoid variables called 'daemon' due to function clash 2015-11-27 09:27:53 +00:00
log_handler.c logging: validate flags passed from client in virtlogd 2015-12-07 17:30:07 +00:00
log_handler.h logging: validate flags passed from client in virtlogd 2015-12-07 17:30:07 +00:00
log_manager.c virLogManagerDomainReadLogFile: Don't do dummy allocs 2016-01-18 17:14:16 +01:00
log_manager.h logging: change log protocol to be more reusable 2015-12-07 17:30:07 +00:00
log_protocol.x Add missing virxdrdefs.h include to log_protocol 2016-01-12 18:15:09 +03:00
test_virtlogd.aug.in Import stripped down virtlockd code as basis of virtlogd 2015-11-26 14:28:55 +00:00
virtlogd.aug Import stripped down virtlockd code as basis of virtlogd 2015-11-26 14:28:55 +00:00
virtlogd.conf Import stripped down virtlockd code as basis of virtlogd 2015-11-26 14:28:55 +00:00
virtlogd.init.in Fix LSB requirements in service script and sync them 2016-01-11 15:49:13 +01:00
virtlogd.pod.in Import stripped down virtlockd code as basis of virtlogd 2015-11-26 14:28:55 +00:00
virtlogd.service.in Import stripped down virtlockd code as basis of virtlogd 2015-11-26 14:28:55 +00:00
virtlogd.socket.in Import stripped down virtlockd code as basis of virtlogd 2015-11-26 14:28:55 +00:00
virtlogd.sysconf Import stripped down virtlockd code as basis of virtlogd 2015-11-26 14:28:55 +00:00