[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 22:47:43 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106854
--- Comment #6 from Alejandro Colomar <colomar.6.4.3 at gmail dot com> ---
timerfd_create() might not be important if the timer is not correctly deleted.
pthread_mutex_init() is another one that is quite more important, as leaking
such a thing in a multithreaded program will be a pain to debug for sure. This
attribute could help detect that.
More information about the Gcc-bugs
mailing list