Re: [PATCH 18/32] remove redundant calls to virBufferFreeAndReset()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On a Sunday in 2020, Laine Stump wrote:
There are several calls to virBufferFreeAndReset() when functions
encounter an error, but the caller never uses the virBuffer once an
error has been encountered (all callers detect error by looking at the
function return value, not the contents of the virBuffer being
operated on), and now that all virBuffers are auto-freed there is no
reason for the lower level functions like these to spend time freeing
a buffer that is guaranteed to be freed momentarily anyway.

Signed-off-by: Laine Stump <laine@xxxxxxxxxx>
---
src/conf/checkpoint_conf.c | 1 -
src/conf/domain_conf.c     | 1 -
src/conf/snapshot_conf.c   | 1 -
src/libxl/xen_xl.c         | 1 -
src/util/virsysinfo.c      | 1 -
src/util/virxml.c          | 1 -
6 files changed, 6 deletions(-)


Reviewed-by: Ján Tomko <jtomko@xxxxxxxxxx>

Jano

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux