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

Ján Tomko jtomko at redhat.com
Wed Feb 27 13:33:43 UTC 2019


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 at redhat.com>
>---
> 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 at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190227/8e06e242/attachment-0001.sig>


More information about the libvir-list mailing list