libvirt/src/qemu
Michal Privoznik 57d8afcf75 qemuBuildHostNetStr: Don't leak @addr
The virSocketAddrFormat() allocates the string and it's caller
responsibility to free it afterwards.

==28857== 11 bytes in 1 blocks are definitely lost in loss record 37 of 168
==28857==    at 0x4C2BEDF: malloc (vg_replace_malloc.c:299)
==28857==    by 0x9A81D79: strdup (in /lib64/libc-2.23.so)
==28857==    by 0x5DA3BF0: virStrdup (virstring.c:902)
==28857==    by 0x5D96182: virSocketAddrFormatFull (virsocketaddr.c:427)
==28857==    by 0x5D95E13: virSocketAddrFormat (virsocketaddr.c:352)
==28857==    by 0x5706890: qemuBuildHostNetStr (qemu_command.c:3891)
==28857==    by 0x57138D3: qemuBuildInterfaceCommandLine (qemu_command.c:8597)
==28857==    by 0x5713D6A: qemuBuildNetCommandLine (qemu_command.c:8699)
==28857==    by 0x57176F6: qemuBuildCommandLine (qemu_command.c:10027)
==28857==    by 0x5769D61: qemuProcessCreatePretendCmd (qemu_process.c:6004)
==28857==    by 0x4056EC: testCompareXMLToArgv (qemuxml2argvtest.c:502)
==28857==    by 0x41DF40: virTestRun (testutils.c:180)

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
2017-09-21 16:07:09 +02:00
..
EVENTHANDLERS.txt qemu/doc: Fix function name for handling events 2017-06-13 09:43:42 +02:00
libvirtd_qemu.aug conf: Introduce migrate_tls_x509_cert_dir 2017-03-25 08:19:49 -04:00
MIGRATION.txt doc: fix writing of QEMU 2017-03-08 17:33:07 +01:00
qemu_agent.c Fix minor typos 2017-04-24 14:40:00 +02:00
qemu_agent.h qemu: agent: Make setting of vcpus more robust 2016-06-22 09:26:08 +02:00
qemu_alias.c qemu: refactor qemuDomainMachine* functions 2017-04-18 13:27:11 +02:00
qemu_alias.h qemu: Rename qemuAliasTLSObjFromChardevAlias 2017-02-22 06:31:40 -05:00
qemu_block.c qemu: Add qemu command line generation for a VxHS block device 2017-09-19 21:10:21 -04:00
qemu_block.h qemu: block: store and test driver names for detected storage nodes 2017-07-27 09:56:41 +02:00
qemu_blockjob.c qemu: take current async job into account in qemuBlockNodeNamesDetect 2017-04-27 14:38:29 +02:00
qemu_blockjob.h qemu: take current async job into account in qemuBlockNodeNamesDetect 2017-04-27 14:38:29 +02:00
qemu_capabilities.c qemu: Detect support for vxhs 2017-09-19 21:10:21 -04:00
qemu_capabilities.h qemu: Detect support for vxhs 2017-09-19 21:10:21 -04:00
qemu_capspriv.h qemu: privatize _virQEMUCapsCachePriv struct 2017-07-26 15:36:47 +02:00
qemu_cgroup.c qemu_cgroup: Remove unnecessary virQEMUDriverPtr arguments 2017-07-26 17:47:25 +02:00
qemu_cgroup.h qemu_cgroup: Remove unnecessary virQEMUDriverPtr arguments 2017-07-26 17:47:25 +02:00
qemu_command.c qemuBuildHostNetStr: Don't leak @addr 2017-09-21 16:07:09 +02:00
qemu_command.h qemu: Allow qemuBuildControllerDevStr() to return NULL 2017-07-15 14:50:42 +02:00
qemu_conf.c qemu: Fix return check on virHashAddEntry call 2017-09-15 08:34:57 -04:00
qemu_conf.h qemu: Check for existence of provided *_tls_x509_cert_dir 2017-08-02 15:51:50 -04:00
qemu_domain_address.c conf: domain: add VIDEO_TYPE_DEFAULT 2017-09-05 10:41:32 -04:00
qemu_domain_address.h qemu: Isolate hostdevs on pSeries guests 2017-07-18 09:00:13 +02:00
qemu_domain.c qemu: Don't update CPU when formatting live def 2017-09-21 15:27:39 +02:00
qemu_domain.h qemu: Don't update CPU when formatting live def 2017-09-21 15:27:39 +02:00
qemu_driver.c qemu: Don't update CPU when formatting live def 2017-09-21 15:27:39 +02:00
qemu_driver.h Change file names in comments to match the files they are in 2014-03-10 14:26:04 +01:00
qemu_hostdev.c qemu: Fix mdev checking for VFIO support 2017-04-12 12:57:39 +02:00
qemu_hostdev.h hostdev: Maintain a driver list of active mediated devices 2017-03-27 15:39:35 +02:00
qemu_hotplug.c qemu: Restore errors when rolling back disk image state 2017-09-15 05:28:21 +02:00
qemu_hotplug.h qemu: hotplug: Unexport qemuDomainHotplugDelVcpu 2017-04-20 10:46:44 +02:00
qemu_hotplugpriv.h qemu: Let tests override waiting time for device unplug 2013-08-26 16:09:55 +02:00
qemu_interface.c Revert "qemu: propagate bridge MTU into qemu "host_mtu" option" 2017-05-22 12:57:34 -04:00
qemu_interface.h Revert "qemu: propagate bridge MTU into qemu "host_mtu" option" 2017-05-22 12:57:34 -04:00
qemu_migration_cookie.c cpu_conf: Drop updateCPU from virCPUDefFormat 2017-09-21 15:23:39 +02:00
qemu_migration_cookie.h qemu: Send updated CPU in migration cookie 2017-06-07 13:36:02 +02:00
qemu_migration.c qemu: monitor: Remove support for "legacy" block jobs 2017-09-14 10:03:38 +02:00
qemu_migration.h qemu: migrate: add mirror stats to migration stats 2017-09-07 11:18:10 +02:00
qemu_monitor_json.c qemu: handle reconnect on chardev hotplug 2017-09-20 11:09:00 +02:00
qemu_monitor_json.h qemu: monitor: Remove support for "legacy" block jobs 2017-09-14 10:03:38 +02:00
qemu_monitor_text.c qemuMonitorTextAddDrive: Fail on unrecognized disk format 2017-06-25 16:22:40 +02:00
qemu_monitor_text.h qemu: monitor: Return struct from qemuMonitor(Text|Json)QueryCPUs 2016-08-24 15:44:47 -04:00
qemu_monitor.c qemu: monitor: Remove support for "legacy" block jobs 2017-09-14 10:03:38 +02:00
qemu_monitor.h qemu: monitor: Remove support for "legacy" block jobs 2017-09-14 10:03:38 +02:00
qemu_parse_command.c qemu: Add qemu command line generation for a VxHS block device 2017-09-19 21:10:21 -04:00
qemu_parse_command.h qemu: parse: rename qemuCaps->caps 2016-02-19 09:45:23 -05:00
qemu_process.c qemu: Add qemu command line generation for a VxHS block device 2017-09-19 21:10:21 -04:00
qemu_process.h qemuDomainAttachMemory: Crate hugepage dir if needed 2017-06-13 16:39:39 +02:00
qemu_processpriv.h qemu: Export qemuProcessHandleDeviceDeleted for tests 2013-08-26 16:09:55 +02:00
qemu_security.c security: don't relabel chardev source if virtlogd is used as stdio handler 2017-06-16 16:00:10 +02:00
qemu_security.h qemu_hotplug: Relabel memdev 2017-03-15 16:55:23 +01:00
qemu.conf qemu: Check for existence of provided *_tls_x509_cert_dir 2017-08-02 15:51:50 -04:00
test_libvirtd_qemu.aug.in qemu: Add AAVMF32 to the list of known UEFIs 2017-07-21 14:36:54 -04:00
THREADS.txt doc: fix writing of QEMU 2017-03-08 17:33:07 +01:00