* lib/striconveh.h: Include <stdlib.h> instead of <stddef.h>.
(str_cd_iconveh, str_iconveh): Declare that deallocation must happen
through 'free'.
+2021-08-07 Bruno Haible <bruno@clisp.org>
+
+ striconveh: Improve GCC 11 allocation-deallocation checking.
+ * lib/striconveh.h: Include <stdlib.h> instead of <stddef.h>.
+ (str_cd_iconveh, str_iconveh): Declare that deallocation must happen
+ through 'free'.
+
2021-08-07 Bruno Haible <bruno@clisp.org>
striconv: Improve GCC 11 allocation-deallocation checking.
#ifndef _STRICONVEH_H
#define _STRICONVEH_H
-#include <stddef.h>
+#include <stdlib.h>
#if HAVE_ICONV
#include <iconv.h>
#endif
extern char *
str_cd_iconveh (const char *src,
const iconveh_t *cd,
- enum iconv_ilseq_handler handler);
+ enum iconv_ilseq_handler handler)
+ _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE;
#endif
extern char *
str_iconveh (const char *src,
const char *from_codeset, const char *to_codeset,
- enum iconv_ilseq_handler handler);
+ enum iconv_ilseq_handler handler)
+ _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE;
#ifdef __cplusplus