]> Savannah Git Hosting - gnulib.git/commit
stdio: Improve GCC 11 allocation-deallocation checking.
authorBruno Haible <bruno@clisp.org>
Sat, 7 Aug 2021 16:17:55 +0000 (18:17 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 7 Aug 2021 16:17:55 +0000 (18:17 +0200)
commita2dcb11b99a4f3b52c6df3c4657405cb857b0e63
tree45bdc1546898da30c23e976e3403fabfc4a4ec5e
parentd57726cabd19ee22e9ab9c00ca53bc7eaa368f8e
stdio: Improve GCC 11 allocation-deallocation checking.

* lib/stdio.in.h (fdopen, fopen, tmpfile): Declare that deallocation
must happen through 'fclose'.
(popen): Declare that deallocation must happen through 'pclose'.
* lib/stdio-safer.h (fopen_safer, tmpfile_safer): Declare that
deallocation must happen through 'fclose'.
(popen_safer): Declare that deallocation must happen through 'pclose'.
(freopen_safer): Declare that arguments must be non-NULL.
ChangeLog
lib/stdio-safer.h
lib/stdio.in.h