]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: alloc: Introduce 'VIR_AUTOCLEAN' macros for clearing stack'd structs
authorPeter Krempa <pkrempa@redhat.com>
Thu, 21 Feb 2019 14:49:29 +0000 (15:49 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 22 Feb 2019 09:05:45 +0000 (10:05 +0100)
commitc73f752e46494b64f054a5c539dfe5b5ad145518
tree9308358fb3e92204170c17da30eae3a25011f96f
parente25492444f8548def03cc5be7382378fc1db671a
util: alloc: Introduce 'VIR_AUTOCLEAN' macros for clearing stack'd structs

The new utility macros are useful for variables we put on the stack but
require some cleanup. The most prominent of those is virBuffer which is
used almost exclusively in that way.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
src/util/viralloc.h