Peter Krempa 55ee6ac8de util: buffer: Introduce VIR_AUTOCLEAN function for virBuffer
virBuffer is almost always stack-allocated, but requires freeing of the
internals on error. Introduce a VIR_AUTOCLEAN function to deal with
this.

Along with the addition add a test which would leak the buffer contents
if it weren't autocleaned.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
2019-02-22 10:05:45 +01:00
..
2018-08-24 13:23:36 +02:00
2019-02-22 10:05:45 +01:00
2019-02-14 14:09:38 +01:00
2019-02-14 14:09:38 +01:00
2019-01-28 14:46:58 +01:00
2019-01-28 14:56:21 +01:00
2017-06-12 19:11:30 -04:00
2019-02-14 14:09:38 +01:00
2019-02-14 14:09:38 +01:00
2019-02-14 14:09:38 +01:00
2018-03-14 12:46:26 +01:00
2019-02-14 14:09:38 +01:00
2017-12-05 11:28:19 +01:00
2019-02-14 14:09:38 +01:00
2018-05-29 15:42:03 +02:00