'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(a)redhat.com>
---
src/util/virbuffer.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/util/virbuffer.h b/src/util/virbuffer.h
index 8bf6bee644..1c8e182064 100644
--- a/src/util/virbuffer.h
+++ b/src/util/virbuffer.h
@@ -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 */
--
2.20.1