[Bug analyzer/106854] [[gnu::malloc(deallocator)]] for non-pointer functions (e.g., fd)
colomar.6.4.3 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Sep 6 15:45:20 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106854
--- Comment #2 from Alejandro Colomar <colomar.6.4.3 at gmail dot com> ---
Also interesting might be that one function might have more than one closer.
For example, open(2) might be closed by close(2), but it is also closed by
fdopen(3), in the sense that the file descriptor can't be (safely) used again
after that, and also that it can't be passed to close(2) after that --even if
in reality the file descriptor is still valid, for obvious reasons--.
More information about the Gcc-bugs
mailing list