https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119557
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I should mention, malloc inlining is not the issue but rather it is the inline of the free. So handling this is even constrained. So maybe this is a documentation fix to warn about it and make a mention that the free side makes the requirement of the malloc attribute to wrong and you need to remove the malloc attribute.