Re: [PATCH 2/5] util: object: Reset pointer when unrefing object in virObjectAutoUnref

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

 



The commit summary mentions object thrice.
   util: reset pointer in virObjectAutoUnref
is less wasteful. Otherwise at least s/unrefing/unreffing/


On Tue, Feb 26, 2019 at 06:08:09PM +0100, Peter Krempa wrote:
The helper function is used by the VIR_AUTOUNREF macro. Prior art is to
clear the pointer even if the variable goes out of scope.

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
src/util/virobject.c | 1 +
1 file changed, 1 insertion(+)


This saves developer time that would otherwise be spent on bikeshedding.
Reviewed-by: Ján Tomko <jtomko@xxxxxxxxxx>

Jano

Attachment: signature.asc
Description: PGP signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[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