+2021-08-07 Bruno Haible <bruno@clisp.org>
+
+ xstriconveh: Improve GCC 11 allocation-deallocation checking.
+ * lib/xstriconveh.h: Include <stdlib.h> instead of <stddef.h>.
+ (xstr_cd_iconveh, xstr_iconveh): Declare that deallocation must happen
+ through 'free'.
+
2021-08-07 Bruno Haible <bruno@clisp.org>
xmemdup0: Improve GCC 11 allocation-deallocation checking.
#ifndef _XSTRICONVEH_H
#define _XSTRICONVEH_H
-#include <stddef.h>
+#include <stdlib.h>
/* Get the 'enum iconv_ilseq_handler' and iconveh_t types, and the
iconveh_open, iconveh_close declarations. */
extern char *
xstr_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 *
xstr_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