* lib/string-buffer.h: Include <stdlib.h> instead of <stddef.h>.
(sb_dupfree): Declare that deallocation must happen through 'free'.
+2021-08-07 Bruno Haible <bruno@clisp.org>
+
+ string-buffer: Improve GCC 11 allocation-deallocation checking.
+ * lib/string-buffer.h: Include <stdlib.h> instead of <stddef.h>.
+ (sb_dupfree): Declare that deallocation must happen through 'free'.
+
2021-08-07 Bruno Haible <bruno@clisp.org>
striconveha: Improve GCC 11 allocation-deallocation checking.
#include <stdarg.h>
#include <stdbool.h>
-#include <stddef.h>
+#include <stdlib.h>
#include "attribute.h"
/* Returns the contents of BUFFER, and frees all other memory held
by BUFFER. Returns NULL upon failure or if there was an error earlier.
It is the responsibility of the caller to free() the result. */
-extern char * sb_dupfree (struct string_buffer *buffer);
+extern char * sb_dupfree (struct string_buffer *buffer)
+ _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE;
#ifdef __cplusplus
}