]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: alloc: Note that VIR_AUTOPTR/VIR_AUTOCLEAN must not be used with vectors
authorPeter Krempa <pkrempa@redhat.com>
Fri, 22 Feb 2019 15:32:11 +0000 (16:32 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 4 Mar 2019 12:04:20 +0000 (13:04 +0100)
commit9ca7ca3d9fbddb363af9940f5cdca478e26a88a0
tree501e0652ca23a3fb119f89d0c759c727cbc98855
parentcf3c525a457d6377593485a5aa29dbcfeabc9e07
util: alloc: Note that VIR_AUTOPTR/VIR_AUTOCLEAN must not be used with vectors

We'd free only the first element of the vector leaking the rest.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/util/viralloc.h