]> Savannah Git Hosting - gnulib.git/commit
stdlib, string, wchar: Improve GCC 11 allocation-deallocation checking.
authorBruno Haible <bruno@clisp.org>
Sat, 7 Aug 2021 14:40:12 +0000 (16:40 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 7 Aug 2021 14:40:12 +0000 (16:40 +0200)
commite78a8a2df97b81141890b7a30413f4d03eccfcb8
tree1208991791bd28001ec0d28ce8373549f00b6f78
parentedb4fbdc959660ef753bdc684aaf14b555871a2a
stdlib, string, wchar: Improve GCC 11 allocation-deallocation checking.

* lib/stdlib.in.h (free): Move declaration up.
(aligned_alloc, calloc, canonicalize_file_name, malloc, realloc):
Declare that deallocation must happen through 'free' (which may actually
be 'rpl_free').
* lib/string.in.h: Include <stdlib.h>.
(strdup): Declare deallocation.
* lib/wchar.in.h: Include <stdlib.h>.
(wcsdup): Declare deallocation.
* lib/malloc.in.h: Include <stdlib.h>.
(memalign): Declare deallocation.
ChangeLog
lib/malloc.in.h
lib/stdlib.in.h
lib/string.in.h
lib/wchar.in.h