summaryrefslogtreecommitdiff
path: root/lib/string-buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/string-buffer.h')
-rw-r--r--lib/string-buffer.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/string-buffer.h b/lib/string-buffer.h
index 129dcebe6e..2dae5da889 100644
--- a/lib/string-buffer.h
+++ b/lib/string-buffer.h
@@ -21,7 +21,7 @@
#include <stdarg.h>
#include <stdbool.h>
-#include <stddef.h>
+#include <stdlib.h>
#include "attribute.h"
@@ -76,7 +76,8 @@ extern void sb_free (struct string_buffer *buffer);
/* 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
}