bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
* striconveh: Improve GCC 11 allocation-deallocation checking
@ 2021-08-07 20:11 Bruno Haible
  0 siblings, 0 replies; only message in thread
From: Bruno Haible @ 2021-08-07 20:11 UTC (permalink / raw)
  To: bug-gnulib

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'.

diff --git a/lib/striconveh.h b/lib/striconveh.h
index bd8e0fe..60c6329 100644
--- a/lib/striconveh.h
+++ b/lib/striconveh.h
@@ -18,7 +18,7 @@
 #ifndef _STRICONVEH_H
 #define _STRICONVEH_H
 
-#include <stddef.h>
+#include <stdlib.h>
 #if HAVE_ICONV
 #include <iconv.h>
 #endif
@@ -95,7 +95,8 @@ extern int
 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
 
@@ -129,7 +130,8 @@ extern int
 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



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-07 20:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-07 20:11 striconveh: Improve GCC 11 allocation-deallocation checking Bruno Haible

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).