mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 07:17:44 +00:00
util: buffer: Remove misleading AUTOPTR func for 'virBuffer'
'virBufferFreeAndReset' does not free the top level structure itself. Additionally we almost exclusively use stack'd buffers rather than pointers. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
82fe58ff26
commit
a3d0d77e74
@ -119,6 +119,4 @@ int virBufferGetIndent(const virBuffer *buf, bool dynamic);
|
||||
void virBufferTrim(virBufferPtr buf, const char *trim, int len);
|
||||
void virBufferAddStr(virBufferPtr buf, const char *str);
|
||||
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virBuffer, virBufferFreeAndReset);
|
||||
|
||||
#endif /* LIBVIRT_VIRBUFFER_H */
|
||||
|
Loading…
Reference in New Issue
Block a user