[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
striconveh: Improve GCC 11 allocation-deallocation checking
From: |
Bruno Haible |
Subject: |
striconveh: Improve GCC 11 allocation-deallocation checking |
Date: |
Sat, 07 Aug 2021 22:11:21 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-210-generic; KDE/5.18.0; x86_64; ; ) |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- striconveh: Improve GCC 11 allocation-deallocation checking,
Bruno Haible <=