libvirt/src/libxl
Laine Stump 84fddfed45 libxl: eliminate extra copy of string
libxlMakeNic was calling g_strdup(virBufferCurrentContent(&buf)) to
make a copy of the buffer contents, and then later freeing the buffer
without ever using it again. Instead of this extra strdup, just
transfer ownership of the virBuffer's string with
virBufferContentAndReset(), and be done with it.

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2020-07-08 16:35:18 -04:00
..
libvirtd_libxl.aug libxl: do not enable nested HVM unless global nested_hvm option enabled 2018-04-17 21:15:27 -06:00
libxl_capabilities.c conf: add support for specifying CPU "dies" parameter 2020-01-16 15:11:42 +00:00
libxl_capabilities.h tests: libxl: do not run the emulator 2020-02-25 12:05:01 +01:00
libxl_conf.c libxl: eliminate extra copy of string 2020-07-08 16:35:18 -04:00
libxl_conf.h libxl: Clarify that 'xenlight' should only be used internally 2020-05-05 14:53:37 -06:00
libxl_domain.c libxl: Clarify that 'xenlight' should only be used internally 2020-05-05 14:53:37 -06:00
libxl_domain.h Use G_GNUC_WARN_UNUSED_RESULT instead of ATTRIBUTE_RETURN_CHECK 2019-10-15 11:25:22 +02:00
libxl_driver.c libxl: use g_auto() for all virBuffers 2020-07-08 16:33:43 -04:00
libxl_driver.h src/libxl: use #pragma once in headers 2019-06-13 17:05:10 +02:00
libxl_logger.c Use g_strerror instead of virStrerror 2020-03-13 17:26:55 +01:00
libxl_logger.h src/libxl: use #pragma once in headers 2019-06-13 17:05:10 +02:00
libxl_migration.c libxl: use g_auto() for all virBuffers 2020-07-08 16:33:43 -04:00
libxl_migration.h src/libxl: use #pragma once in headers 2019-06-13 17:05:10 +02:00
libxl.conf libxl: do not enable nested HVM unless global nested_hvm option enabled 2018-04-17 21:15:27 -06:00
Makefile.inc.am systemd: Add sysconf files for all daemons 2020-04-03 11:50:47 +02:00
test_libvirtd_libxl.aug.in build: use @CONFIG@ instead of ::CONFIG:: in augeas tests 2019-08-09 14:06:31 +01:00
virtxend.init.in configure: Provide OpenRC scripts for sub-daemons 2019-12-16 10:11:22 +01:00
virtxend.service.in systemd: Move timeout from service files to sysconf files 2020-04-03 11:50:50 +02:00
virtxend.sysconf systemd: Move timeout from service files to sysconf files 2020-04-03 11:50:50 +02:00
xen_common.c libxl: use g_auto() for all virBuffers 2020-07-08 16:33:43 -04:00
xen_common.h xenconfig: move contents to libxl driver and remove directory 2019-08-26 11:06:12 -06:00
xen_xl.c remove redundant calls to virBufferFreeAndReset() 2020-07-08 16:35:05 -04:00
xen_xl.h xenconfig: move contents to libxl driver and remove directory 2019-08-26 11:06:12 -06:00
xen_xm.c libxl: use g_auto() for all virBuffers 2020-07-08 16:33:43 -04:00
xen_xm.h xenconfig: move contents to libxl driver and remove directory 2019-08-26 11:06:12 -06:00
xenxs_private.h xenconfig: move contents to libxl driver and remove directory 2019-08-26 11:06:12 -06:00